Error in gridPLT() : Figure region too small and/or viewport too large
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.
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?
I have tried with two screens:
- 13.3" (1440 x 900)
- 23" (1920 x 1080)
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).
It worked in plain R. In Rstudio, I had to use png() and it also worked.
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: https://github.com/renozao/NMF/issues/65
Yes, I am using Mac.
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.
This problem still persists. Saving the plot to png or pdf works for me.