Re: [R] How to add error bars to lattice xyplot

2021-10-11 Thread Luigi Marongiu
Thank you, but on the example in use, it draws at each x a triplet of y from the same class linked by a segment. It is essentially a strip plot rather than a scatter plot... On Mon, Oct 11, 2021 at 10:28 PM Bert Gunter wrote: > > Your panel function needs to plot the points! See at b

Re: [R] How to add error bars to lattice xyplot

2021-10-11 Thread Bert Gunter
Your panel function needs to plot the points! See at below xyplot(Value ~ Concentration, group = Substance, data = df, pch = 16, cex = 1.2, type = "b", xlab=expression(bold(paste("Concentration (", mu, "M)"))), ylab=expression(bold("Infection rate")),

Re: [R] How to add error bars to lattice xyplot

2021-10-11 Thread Luigi Marongiu
Thanks, now I got the bars (although without notch) but I lost the main plot: ``` xyplot(Value ~ Concentration, group = Substance, data = df, pch = 16, cex = 1.2, type = "b", xlab=expression(bold(paste("Concentration (", mu, "M)"))), ylab=expression(bold("Infection rate")), col=COLS, scales = list(

Re: [R] How to add error bars to lattice xyplot

2021-10-11 Thread Deepayan Sarkar
On Mon, Oct 11, 2021 at 5:41 PM Luigi Marongiu wrote: > > Hello, > I am trying to plot data using lattice. The basic plot works: > ``` > Substance = rep(c("A", "B", "C", "D"),4) > Concentration = rep(1:4,4), > Value = c(62.8067, 116.2633, 92.2600, 9.8733, 14.8233, >

[R] How to add error bars to lattice xyplot

2021-10-11 Thread Luigi Marongiu
Hello, I am trying to plot data using lattice. The basic plot works: ``` Substance = rep(c("A", "B", "C", "D"),4) Concentration = rep(1:4,4), Value = c(62.8067, 116.2633, 92.2600, 9.8733, 14.8233, 92.3733, 98.9567, 1.4833, 0.6467, 50.6600,