Re: [R] series of densities

2021-05-18 Thread Troels Ring
Thanks a lot to David and William - I think ggplot( data=ddd, aes(x=pH, y=BC,group=interaction(type,pH), col=type))+geom_boxplot() was very helpful! All best Troels Den 18-05-2021 kl. 02:27 skrev David Winsemius: ggplot( data=ddd, aes(x=pH, y=BC,group=interaction(type,pH),

Re: [R] series of densities

2021-05-17 Thread William Michels via R-help
Hi Troels, Have you considered using Lattice graphics? Adapting from examples on the help page: > ?histogram() > histogram( ~ BC | pH, data = ddd, type = "density", xlab = "BC", layout = c(1, 3), aspect = 0.618, strip = strip.custom(strip.levels=c(TRUE,TRUE)), panel = function(x, ...)

Re: [R] series of densities

2021-05-17 Thread David Winsemius
On 5/17/21 7:44 AM, Troels Ring wrote: Dear friends I'm trying to plot in silico derived values of 3 types of buffer-capacities  over pH values and want densities of the three types together at each pH with the pH values on the abscissa. I have generated some data set.seed(2345) pHs <-

Re: [R] series of densities

2021-05-17 Thread David Winsemius
On 5/17/21 7:44 AM, Troels Ring wrote: Dear friends I'm trying to plot in silico derived values of 3 types of buffer-capacities  over pH values and want densities of the three types together at each pH with the pH values on the abscissa. I have generated some data set.seed(2345) pHs <-

[R] series of densities

2021-05-17 Thread Troels Ring
Dear friends I'm trying to plot in silico derived values of 3 types of buffer-capacities  over pH values and want densities of the three types together at each pH with the pH values on the abscissa. I have generated some data set.seed(2345) pHs <- c(7.2,7.4,7.6) pH <- rep(pHs,each=30) BC <-