> This is a version of FAQ 7.22: you need to tell R to print lattice graphics.
> Without the next statement, the result would be auto-printed.
>
> Duncan Murdoch
That fixed it. Thank you again. Sorry for not reading the FAQ.
Saiwing
__
R-help@r-pro
On 11-01-19 4:54 PM, Saiwing Yeung wrote:
Hi all,
I had a weird problem with xyplot and I am wondering if anyone can help me
figure out what's wrong here. Basically if I call xyplot() inside a function
and I call quartz() after, then the previous xyplot() does not do anything. A
short demo of
Hi all,
I had a weird problem with xyplot and I am wondering if anyone can help me
figure out what's wrong here. Basically if I call xyplot() inside a function
and I call quartz() after, then the previous xyplot() does not do anything. A
short demo of the issue is like this:
library(lattice)
Try this:
Key <- list(text = list(c("FDP", "FDL")), points = list(pch = c("*", "o"),
col = c("red", "blue"), cex = 2), space = "right")
xyplot(S ~ t | ID, key = Key, panel = function(...) {
panel.points(...,
col = rep(c("red", "blue"), 3:4),
I have a data set like this
ID=c("A","A","A","A","A","A","A","B","B","B","B","B","B","B")
s=c(1.1,2.2,1.3,1.1,3.1,4.1,4.2,1.1,2.2,1.3,1.1,3.1,4.1,4.2)
d=c(1,2,3,4,5,6,7,1,2,3,4,5,6,7)
t=c(-3,-2,-1,0,1,2,3,-3,-2,-1,0,1,2,3)
mydata<-data.frame(cbind(as.character(ID),as.numeric(s),as.integer(d),as.
webpage.
Regards
Wayne
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Raymond Balise
Sent: 18 September 2007 23:52
To: [EMAIL PROTECTED]
Subject: [R] xyplot question
I am tring to add error bars to data in an xyplot. Below is the
content of a CSV file
r 2007 10:52 a.m.
> To: [EMAIL PROTECTED]
> Subject: [R] xyplot question
>
> I am tring to add error bars to data in an xyplot. Below is
> the content of a CSV file that I am trying to use and the
> code which plots the data points and 45 degree lines in each
> of the panes of t
I am tring to add error bars to data in an xyplot. Below is the
content of a CSV file that I am trying to use and the code which plots
the data points and 45 degree lines in each of the panes of the
trellice. I want to add error bars that go up and down to the limits
set by the lcl and ucl values
On 9/14/07, Raymond Balise <[EMAIL PROTECTED]> wrote:
> I am tring to do an xyplot where I want to plot 5 dots in each pane of
> the trellice and the dots need to have lines (whiskers) extending up
> and down at each point(plus a 45 degree reference line). The data
> frame is set up with the varia
Hi Raymond,
It isn't lattice, but this is fairly easy to do with ggplot2:
install.packages("ggplot2")
library(ggplot2)
qplot(x, y, facets = group ~ Method) +
geom_linerange(aes(min = lcl, max=ucl)) +
geom_abline()
See more at http://had.co.nz/ggplot2
Hadley
On 9/14/07, Raymond Balise <[EMAIL
I am tring to do an xyplot where I want to plot 5 dots in each pane of
the trellice and the dots need to have lines (whiskers) extending up
and down at each point(plus a 45 degree reference line). The data
frame is set up with the variables x y lcl and ucl (where the lcl and
ucl are the limits on
On 9/11/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote:
> Thanks Deepyan. I am doing it in source but I didn't realize that that
> was a function. Thanks so much.
You might try source(..., echo=TRUE) if you want to mimic console evaluation.
-Deepayan
Thanks Deepyan. I am doing it in source but I didn't realize that that
was a function. Thanks so much.
-Original Message-
From: Deepayan Sarkar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 11, 2007 12:38 PM
To: Leeds, Mark (IED)
Cc: [EMAIL PROTECTED]
Subject: Re: [R] x
On 9/11/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote:
> I have the code below and it works fine if I print the xyplot but if I
> take the print out, then I just get a blank
> pdf. The same holds if I just send the plot to the console without the
> print ( I get nothing ). My question is whether
Original Message
Subject: [R] xyplot question
From: Leeds, Mark (IED) <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: 11.09.2007 18:00
>
> load("stocks.dat")
>
> pdf('temp.pdf', width=10, height=8)
>
does ist work with postscript?
som
I have the code below and it works fine if I print the xyplot but if I
take the print out, then I just get a blank
pdf. The same holds if I just send the plot to the console without the
print ( I get nothing ). My question is whether this is always
the case with xyplot or is there something wrong w
16 matches
Mail list logo