Re: [R] Plotting factors in graph panel

2023-07-06 Thread PIKAL Petr
Hallo Anupam I do not see much difference in ggplot or lattice, they seems to me provide almost identical results when removing theme part from ggplot. library(ggplot2) library(lattice) ggplot(TrialData4, aes(x=Income, y=Percent, group=Measure)) + geom_point() + geom_line() + facet_wrap(~Meas

[R] printCoefmat() and zap.ind

2023-07-06 Thread Shu Fai Cheung
Hi All, I would like to ask two questions about printCoefmat(). First, I found a behavior of printCoefmat() that looks strange to me, but I am not sure whether this is an intended behavior: ``` r set.seed(5689417) n <- 1 x1 <- rnorm(n) x2 <- rnorm(n) y <- .5 * x1 + .6 * x2 + rnorm(n, -0.0002

Re: [R] Plotting factors in graph panel

2023-07-06 Thread Deepayan Sarkar
On Thu, 6 Jul 2023 at 15:21, Anupam Tyagi wrote: > > Btw, I think "lattice" graphics will provide a better solution than > "ggplot", because it puts appropriate (space saving) markers on the axes > and does axes labels well. However, I cannot figure out how to do it in > "lattice". You will need

Re: [R] Plotting factors in graph panel

2023-07-06 Thread Anupam Tyagi
Btw, I think "lattice" graphics will provide a better solution than "ggplot", because it puts appropriate (space saving) markers on the axes and does axes labels well. However, I cannot figure out how to do it in "lattice". On Thu, 6 Jul 2023 at 15:11, Anupam Tyagi wrote: > Hi John: > > Thanks!

Re: [R] Plotting factors in graph panel

2023-07-06 Thread Anupam Tyagi
Hi John: Thanks! Below is the data using your suggestion. I used "ggplot" to make a graph. I am not too happy with it. I am looking for something simpler and cleaner. Plot is attached. I also tried "lattice" package, but nothing got plotted with "xyplot" command, because it is looking for a numer

[R] Errors in "An introduction to R"

2023-07-06 Thread Jarkko Toivonen
Hi, Thanks for the great manual! I noticed a few errors in Version 4.3.1 (2023-06-16), though. Early in the document a "working directory" refers to a file system directory, such as ~/work. It is also discussed whether separate working directories should be used for separate analyses (page 6