[R] problem with creation of /doc/index.html

2021-11-11 Thread Oleksandr Ocheredko via R-help
I use macOS BigSur v.11.5 R v.4.0.5 macOS package «ltable» does power analysis based on GSL-2.7 Xcode v.13.1 It goes smoothly with all OK on Checking, building, installing both with R and RStudio v. 1.3.1093 The only problem appears with Installing package in RStudio immediately after deleting i

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
Rich, This is not a place designed for using packages but since this discussion persists, I will supply you with SAMPLE code thrown together in just a few minutes to illustrate the IDEAS, but your would obviously be tweaked to your needs. I made a very small amount of data to illustrate several ap

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
As I replied to Rich privately for another message, I suggest that you may well be able to fit what you need in memory, if careful. But my main point is that when you have so much data, you do not need all of it to make a representative graph. A boxplot made using 100,000 data points may well have

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
Rich, I think we have suggested something several times that you ignore as you are focused on your way of thinking. If you read the last part of the letter I wrote in public, I suggest combining your multiple dataframes into one if they are compatible and including a new column called something l

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
Rich, Boxplots like many other things in ggplot can be grouped in various ways. I often do something like this: 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 characte

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