Open kmp11 opened 9 months ago
It would also be nice if the grid plots were interactable like with ggplotly. Customizing to that extent seems very difficult so far.
This might be what you are looking for? https://stackoverflow.com/a/51772409/9049673
Does an excellent job using facets instead of appending plots to a PDF like you were doing
(https://github.com/StadlerlabRice/WW-CoV2-project/blob/QX-600/pMMoV-Timeseries-Plotting.Rmd)
The code at this link generates 1 plot for each WWTP site per PDF page. I need to have the PDF pages either combined into an easily viewable grid format, or several grids over a couple pages. The sites should also be organized alphabetically, and separated into two groups by type, Cons and Schools. As you'll note in the script as well, a few sites have a geom_line added for the specific date that a sample was moved or adjusted. Hopefully that can be incorporated into the grid as well, but may not be necessary if it proves too difficult. I already have the organizing done in the script here: https://github.com/StadlerlabRice/WW-CoV2-project/blob/QX-600/3-weekly_comparisions.R
Type_group
references schools and congregate, wheregroup_num
references the different groups that keep them in alphabetical order.Just working on figuring out how to implement this into how the plots are generated into the PDF document with the .rmd file.
Maybe a whole separate type of loop function would be necessary?
Thanks for any help with this!