seqHMM icon indicating copy to clipboard operation
seqHMM copied to clipboard

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

Open MarcAragones opened this issue 8 years ago • 8 comments

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.

MarcAragones avatar May 20 '17 09:05 MarcAragones

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?

satuhelske avatar Jun 20 '17 11:06 satuhelske

I have tried with two screens:

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

MarcAragones avatar Jun 20 '17 12:06 MarcAragones

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).

satuhelske avatar Jun 20 '17 12:06 satuhelske

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

MarcAragones avatar Jul 04 '17 14:07 MarcAragones

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

helske avatar Oct 30 '17 14:10 helske

Yes, I am using Mac.

MarcAragones avatar Oct 30 '17 14:10 MarcAragones

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.

AlexMRuch avatar Dec 08 '17 19:12 AlexMRuch

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

xiaolinzhuo avatar Dec 16 '19 15:12 xiaolinzhuo