Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-12 Thread Rich Shepard
On Thu, 11 Nov 2021, John Dougherty wrote: You should probably glance at the R Graphics Cookbook. That was my gateway to ggplot. I believe ggplot is a part of the tidyverse so there should good information. John, I have Hadley's ggplot2 book and keep referring to it but haven't used it before

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread John Dougherty via R-help
On Wed, 10 Nov 2021 11:44:07 -0800 (PST) Rich Shepard wrote: > I have the code to create ggplot2 boxplots using two attributes (e.g., > chemical concentration and month) from the same tibble. Is there an > example from which I can learn how to make boxplots from different > tibbles/dataframes (e.

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Avi Gross via R-help wrote: This is not a place designed for using packages but since this discussion persists, ... Avi, I'll find a cowplot help site. # Create and save two ggplots, or more in your case: p1 <- ggplot(data=df1, aes(x=NULL, y=cfs)) + geom_boxplot(color

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Avi Gross via R-help
d Sent: Thursday, November 11, 2021 1:25 PM To: r-help@r-project.org Subject: Re: [R] ggplot2: multiple box plots, different tibbles/dataframes On Thu, 11 Nov 2021, Avi Gross via R-help wrote: > Say I have a data.frame with columns called PLACE and MEASURE others. > The one I call PLACE would

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Avi Gross wrote: Your message was just to me so the reply is also just to you. Avi, Oops! Mea cupla. Yes, large data sets can be handled if your machine has the memory and one big one takes up the same amount as four smaller ones if combined. This desktop has 32G RAM

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Bert Gunter wrote: These days, 3e6 rows x 3 columns is small, unless large objects are in each cell. I think R would handle this with ease. Thanks, Bert. See my last post showing data set structure and suggested collection for use by grouping. Regards, Rich ___

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Avi Gross via R-help
. -Original Message- From: R-help On Behalf Of Rich Shepard Sent: Thursday, November 11, 2021 12:56 PM To: R-help Subject: Re: [R] ggplot2: multiple box plots, different tibbles/dataframes On Thu, 11 Nov 2021, Bert Gunter wrote: > You can always create a graphics layout and then p

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Avi Gross via R-help wrote: Say I have a data.frame with columns called PLACE and MEASURE others. The one I call PLACE would be a factor containing the locations you are measuring at. I mean it would be character strings of your N places but the factors would be made in the

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Bert Gunter wrote: You can always create a graphics layout and then plot different ggplot objects in the separate regions of the layout. See ?grid.layout (since ggplots are grobs) and ?plot.ggplot . This also **may** be useful by showing examples using grid.arrange() htt

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Bert Gunter
You can always create a graphics layout and then plot different ggplot objects in the separate regions of the layout. See ?grid.layout (since ggplots are grobs) and ?plot.ggplot . This also **may** be useful by showing examples using grid.arrange() https://cran.r-project.org/web/packages/egg/vi

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Avi Gross via R-help
: multiple box plots, different tibbles/dataframes On Thu, 11 Nov 2021, Avi Gross wrote: > Boxplots like many other things in ggplot can be grouped in various ways. > I often do something like this: Avi, I've designed and used multiple boxplots in many projects. They might show

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Avi Gross wrote: Boxplots like many other things in ggplot can be grouped in various ways. I often do something like this: Avi, I've designed and used multiple boxplots in many projects. They might show geochemical concentrations at two locations or in two (or three) sepa

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Avi Gross via R-help
Behalf Of Rich Shepard Sent: Thursday, November 11, 2021 8:50 AM To: r-help@r-project.org Subject: Re: [R] ggplot2: multiple box plots, different tibbles/dataframes On Wed, 10 Nov 2021, Avi Gross via R-help wrote: > I think many here may not quite have enough info to help you. Avi, Actua

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Jeff Newmiller wrote: I strongly recommend that you change your way of thinking when it comes to ggplot: if your data are not yet in one data frame then your data are not yet ready for plotting. It is possible to specify separate data frames for different layers of the pl

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Jeff Newmiller
I strongly recommend that you change your way of thinking when it comes to ggplot: if your data are not yet in one data frame then your data are not yet ready for plotting. It is possible to specify separate data frames for different layers of the plot, but this severely complicates building le

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes [RESOLVED]

2021-11-11 Thread Rich Shepard
On Wed, 10 Nov 2021, Rich Shepard wrote: I have the code to create ggplot2 boxplots using two attributes (e.g., chemical concentration and month) from the same tibble. Is there an example from which I can learn how to make boxplots from different tibbles/dataframes (e.g., chemical concentrations

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Bill Dunlap wrote: I googled for "ggplot2 boxplots by group" and the first hit was https://www.r-graph-gallery.com/265-grouped-boxplot-with-ggplot2.html which displays lots of variants along with the code to produce them. It has links to ungrouped boxplots and shows how vi

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Thu, 11 Nov 2021, Bill Dunlap wrote: I googled for "ggplot2 boxplots by group" and the first hit was https://www.r-graph-gallery.com/265-grouped-boxplot-with-ggplot2.html which displays lots of variants along with the code to produce them. It has links to ungrouped boxplots and shows how vi

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Bill Dunlap
I googled for "ggplot2 boxplots by group" and the first hit was https://www.r-graph-gallery.com/265-grouped-boxplot-with-ggplot2.html which displays lots of variants along with the code to produce them. It has links to ungrouped boxplots and shows how violin plots can better display your data.

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-11 Thread Rich Shepard
On Wed, 10 Nov 2021, Avi Gross via R-help wrote: I think many here may not quite have enough info to help you. Avi, Actually, you've reflected my thinking. But the subject of multiple plots has come up. There are a slew of ways, especially in the ggplot paradigm, to make multiple smaller pl

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-10 Thread Avi Gross via R-help
: multiple box plots, different tibbles/dataframes On Wed, 10 Nov 2021, Bert Gunter wrote: > As always, online search (on "ggplot2 help") seemed to bring up useful > resources. I suggest you look here (suggested tutorials and resources > are farther down the page): https://gg

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-10 Thread Rich Shepard
On Wed, 10 Nov 2021, Bert Gunter wrote: As always, online search (on "ggplot2 help") seemed to bring up useful resources. I suggest you look here (suggested tutorials and resources are farther down the page): https://ggplot2.tidyverse.org/ Bert, My web search was for multiple boxplots and I d

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-10 Thread Bert Gunter
As always, online search (on "ggplot2 help") seemed to bring up useful resources. I suggest you look here (suggested tutorials and resources are farther down the page): https://ggplot2.tidyverse.org/ Bert Gunter On Wed, Nov 10, 2021 at 12:16 PM Rich Shepard wrote: > > On Wed, 10 Nov 2021, Rich

Re: [R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-10 Thread Rich Shepard
On Wed, 10 Nov 2021, Rich Shepard wrote: I have the code to create ggplot2 boxplots using two attributes (e.g., chemical concentration and month) from the same tibble. Is there an example from which I can learn how to make boxplots from different tibbles/dataframes (e.g., chemical concentrations

[R] ggplot2: multiple box plots, different tibbles/dataframes

2021-11-10 Thread Rich Shepard
I have the code to create ggplot2 boxplots using two attributes (e.g., chemical concentration and month) from the same tibble. Is there an example from which I can learn how to make boxplots from different tibbles/dataframes (e.g., chemical concentrations and monitoring location)? TIA, Rich ___