[R] How to define a new space based on PC1 and PC2

2022-01-16 Thread Ogbos Okike
Dear Experts, Happy New Year!!, and thank you very much for all the assistance you rendered to me last year. I ran a PCA (Principal component analysis) and would like to combine PC1 and PC2 in order to define a new space. The variances associated with PC1 and PC2 are respectively 51% and 14%.

[R] How to convert category (or range/group) into continuous ?

2022-01-16 Thread Marna Wagley
Hi R users, I first categorized the continuous data into groups (ranges or category) but now I would like to change the category into a continuous data and plot it. For example I have attached the data in which you can see two columns named "group" and "value". The group column contains a range

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

2022-01-16 Thread Richard M. Heiberger
My guess, continuing from Rolf, is that you should be using conditioning bwplot(~ y | f2, df, layout=c(3,1)) > On Jan 16, 2022, at 22:22, Rolf Turner wrote: > > xxx <- trellis.par.get("box.umbrella") > xxx$lty <- 1 > trellis.par.set(box.umbrella=xxx) > junk <- rnorm(42) > bwplot(junk)

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