Now after searching, I found out that ggplot2 cant place graphs on multiple pages.Youll just need to iterate it several times, once for each subset of your data.
You havent provided sample data, so heres an example using the Baseball data frame. Thats probably overkill here, but heres an example where the flexibility comes in handy. Well do this by splitting the data by team87 and making a separate plot for each subset of the data. We save the output in plist, a list of (in this case) 24 plots. Below are two options, one with four separate PDF files, each with six plots, the other with a single four-page PDF file. We use grid.arrange to lay out the plots, including using the left and bottom arguments to add axis titles. Make Multi Page -Adobe -Os X Code Doesnt LikeIt seems that the code doesnt like one of my individuals and Im getting this error. It stops printing after it hits this individual list(grobs Error in gList(705-70773 list(grobs list(list(x 0.5, y 0.5,: only grobs allowed in gList Any help would be great. For example, are all data missing for that individual or something like that Try creating your plot but feed ggplot a data frame with just the data for that one individual and see what happens. Look at the data for that individual and see if theres something obviously different about it. Provide details and share your research But avoid Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. Not the answer youre looking for Browse other questions tagged r ggplot2 plot gridextra radar-chart or ask your own question.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |