Hi
I am plotting a set of data inside a for loop.
Is it possible to use plot in for loop without redrawing the whole
plot? Am using par(new=TRUE) but that draws on top of the previous plot.
Couldn't find any threads about the topic.
Thanks
Mohan
--
to do.
Benjamin
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org
]
On Behalf Of Mohan Singh
Sent: Wednesday, March 25, 2009 1:54 PM
To: r-help@r-project.org
Subject: [R] Plot inside For loop
Hi
I am plotting a set of data inside
and yaxt=n and draw
your own axes.
plot(NA,NA,xlim=c(-30,100), ylim=c(-30,90), ...);
for(i in 1:query) {
points(..);
#count increments
}
axis(
)
From: Mohan Singh [mailto:mohan.si...@ucd.ie]
Sent: Wednesday, March 25, 2009 3:00 PM
To: Nutter, Benjamin
Cc: r-help@r-project.org
your own axes.
plot(NA,NA,xlim=c(-30,100), ylim=c(-30,90), ...);
for(i in 1:query) {
points(..);
#count increments
}
axis(
)
From: Mohan Singh [mailto:mohan.si...@ucd.ie]
Sent: Wednesday, March 25, 2009 3:00 PM
To: Nutter, Benjamin
Cc: r-help@r-project.org
Subject: Re: [R] Plot
Hii
I am trying to plot lines at (0,0) axis where my scatterplot goes
between positive n negative values for x and y axis
i can plot point using points(0,0) but if i want to draw lines
along it, can't seem to get it right
Mohan
__
I am trying to print graphs as pdf's or eps in a for loop, but I can't seem
to get it right
Either it prints only a single eps graph (overwrites) or when I use
#pdf(paste(i,.pdf, sep=)) .. it prints all pdf's but they are empty
Can someone suggest which method shud I use for such.
Hi everyone
I am trying to use grep in a for loop to compare a string value. It works
if I use the actual index value but when I use the for loop index, it
doesn't work. Any suggestions plz.
Here is the code:
data - read.table(file=Sigmoid.csv, head=FALSE, sep=,);
c1 - data$V1
the rows
with data (just started R), so I created individual frames for data
Cheers
Mohan
-Original Message-
From: Phil Spector [mailto:spec...@stat.berkeley.edu]
Sent: Wednesday, March 11, 2009 10:46 PM
To: Mohan Singh
Subject: Re: [R] R-help: grep in for loop using index - doesn't work
Thanks very much Phil :)
Worked prefect
-Original Message-
From: Phil Spector [mailto:spec...@stat.berkeley.edu]
Sent: Wednesday, March 11, 2009 11:14 PM
To: Mohan Singh
Subject: Re: [R] R-help: grep in for loop using index - doesn't work
Mohan -
Sorry about that. I need to check
Hi everyone
I am trying to use grep in a for loop to compare a string value. It works
if I use
the actual index value but when I use the for loop index, it doesn't work.
Any suggestions plz.
Here is the code:
data - read.table(file=Sigmoid.csv, head=FALSE, sep=,);
c1 - data$V1
c2 - data$V2
10 matches
Mail list logo