Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in gridPLT() : Figure region too small and/or viewport too large #23

Open
MarcAragones opened this issue May 20, 2017 · 8 comments

Comments

@MarcAragones
Copy link

Hi,

I have been following 4. Examples with life course data section of your documentation and I cannot plot the state distributions.

When I do:

ssplot(list("Marriage" = marr_seq, "Parenthood" = child_seq,
            "Residence" = left_seq))

I get:

Error in gridPLT() : Figure region too small and/or viewport too large

I have a big screen and I have tried to maximize the plot section, but it does not work.

@satuhelske
Copy link
Collaborator

Hi,

I'm sorry but I can't come up with a reason why that would not work. Have you tried plotting in a separate window or document?

@MarcAragones
Copy link
Author

I have tried with two screens:

  • 13.3" (1440 x 900)
  • 23" (1920 x 1080)

@satuhelske
Copy link
Collaborator

I'm sure the problem is not about the size of the screen. The plot is not that big (or shouldn't be, at least), so it should fit in the graphics device. Have you tried if it works with only two channels? Are you able to plot the other figures?

Try also plotting in plain R and/or into a file with, say, png() or pdf(). Are you using Rstudio? There you could try opening a new window for graphics (with x11() or similar).

@MarcAragones
Copy link
Author

It worked in plain R. In Rstudio, I had to use png() and it also worked.

@helske
Copy link
Owner

helske commented Oct 30, 2017

I now get the same problems since changing to Mac. @MarcAragones, are you using Mac as well? We seem to be not only one experiencing this kind of issues: renozao/NMF#65

@MarcAragones
Copy link
Author

Yes, I am using Mac.

@AlexMRuch
Copy link

I'm having the same issue with plotting and Error in gridPLT() here with a Mac (version 10.13.1), RStudio (version 1.1.383) and R (version 3.4.2). As with @MarcAragones, saving the plot to a .png with png() > ssplot() > dev.off() worked for me.

@xiaolinzhuo
Copy link

This problem still persists. Saving the plot to png or pdf works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants