Dear Rhelp,
I would like to have 6 xyplots in the same page. Similar to (par(mfrow=c(3,3))
Found this example on the R archives.
library(lattice)
trellis.par.set(theme = col.whitebg())
xy <- xyplot(decrease ~ treatment, OrchardSprays,
groups = rowpos, type = "a",
auto.
c(0.66, 0.5, 0.99, 1.0), more = TRUE)
print(xy, pos = c(0.0, 0.0, 0.33, 0.5), more = TRUE)
print(xy, pos = c(0.33, 0.0, 0.66, 0.5), more = TRUE)
print(xy, pos = c(0.66, 0.0, 0.99, 0.5), more = FALSE)
Thanks in advance,
Lisa
- Original Message -
From: Lisa Daniel
To: "r-help@r-projec
(xy, pos = c(0.33, 0.0, 0.66, 0.5), more = TRUE)
j=j+1
print(xy, pos = c(0.66, 0.0, 0.99, 0.5), more = FALSE)
Also, I would like to create a main title for the first row and second row of
figures.
Many thanks in advance,
Lisa
- Original Message -
From: Duncan Mackay
To: Lisa Daniel ;
anels as this is for publication purpose.
Many thanks,
Lisa
----- Original Message -
From: Duncan Mackay
To: Lisa Daniel ; r-help-r-project.org
Cc:
Sent: Wednesday, February 13, 2013 7:53 PM
Subject: Re: [R] Plotting multiple xyplots in same page
Hi Lisa
have a look at par.settings in
Dear Rhelp,
I would like to get alternate tick labels for the xyplot:
library(lattice)
library(grid)
xy <-xyplot(decrease ~ treatment, OrchardSprays,
main= "Some plot",
groups = rowpos, type = "a",
page = function(n){
grid.text(LETTERS[j],
5), more = TRUE)
j=j+1
print(xy, pos = c(0.33, 0.0, 0.66, 0.5), more = TRUE)
j=j+1
print(xy, pos = c(0.66, 0.0, 0.99, 0.5), more = FALSE)
Many thanks,
Lisa
- Original Message -
From: Lisa Daniel
To: "r-help@r-project.org"
Cc:
Sent: Thursday, February 14, 2013 12:14 PM
Sub
.97, gp=gpar(fontsize=12, col="black"))
grid.text("Lower row", x=0.5, y=0.47, gp=gpar(fontsize=12, col="black"))
Thanks,
Lisa
- Original Message -
From: David Winsemius
To: Lisa Daniel
Cc: "r-help@r-project.org"
Sent: Thursday, February 14, 2013 4
Dear Rhelp,
I am trying to get multiple xyplots and barplots in the same page. I couldn't
get it work.
Example code:
library(lattice)
library(grid)
xy <-xyplot(decrease ~ treatment, OrchardSprays,
main= "Some plot",
groups = rowpos, type = "a",
scales=list(x=list(at=seq(1,8,1),la
HI All,
I got this Error message, when I tried to plot
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 5 at size 15 could
not be loaded
sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-unknown-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
9 matches
Mail list logo