Re: [R] how to plot numeric variable against several categories with lattice bwplot?

2022-01-17 Thread Deepayan Sarkar
. library(latticeExtra) names(plist) <- flist do.call(c, plist) Best, -Deepayan > > Cheers > Petr > > > -Original Message- > > From: R-help On Behalf Of Luigi Marongiu > > Sent: Monday, January 17, 2022 1:31 PM > > To: Rolf Turner > > Cc: r-

Re: [R] how to plot numeric variable against several categories with lattice bwplot?

2022-01-17 Thread Luigi Marongiu
Yes, I would like to have a boxplot of y against each of the other variables, each into a separate panel, without having to type the command for each pair (I have 23 categories in the real data...). Thank you for the solid line code (I thought it might have been a simple parameter to add...) On

Re: [R] how to plot numeric variable against several categories with lattice bwplot?

2022-01-16 Thread Rolf Turner
On Thu, 13 Jan 2022 20:38:04 +0100 Luigi Marongiu wrote: > Hello, > I have a numerical variable (x) and a series of categories. I would > like to make a box plot of x against each of the categories. How can I > arrange the data so that I can accomplish it with lattice? > At the moment I got

[R] how to plot numeric variable against several categories with lattice bwplot?

2022-01-13 Thread Luigi Marongiu
Hello, I have a numerical variable (x) and a series of categories. I would like to make a box plot of x against each of the categories. How can I arrange the data so that I can accomplish it with lattice? At the moment I got this: ``` df = data.frame(x = c(rep(1,5), rep(2,5), rep(3,5)), y =