David Winsemius writes:
Aha.. thankyou, I was not aware of that.
> Now you have changed plotting functions from plot and barplot over to
> barchart (a Lattice function) and were not aware of FAQ 7.22:
>
> http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_0
Hi aleblanc,
Does something like this work? See inline comments for details.
## If you want them in separate files, you might use onefile = FALSE
## I also often find I need to adjust width and height
## which could be done with height = 9, width = 9, for example
pdf(file = "~/Dropbox/phd/resul
On Oct 28, 2010, at 1:27 PM, wrote:
pdf(file = "~/Dropbox/phd/results/graphs/TEST%03d.pdf")
for (dataset in
c("breastCancer","pima","heartDisease","crx","ionosphere","votes"))
{
p <- eval(parse(text=paste(dataset,"Probs",sep="")))
m <- melt(t(p))
title <- titles[[dataset]]
filename=pas
pdf(file = "~/Dropbox/phd/results/graphs/TEST%03d.pdf")
for (dataset in
c("breastCancer","pima","heartDisease","crx","ionosphere","votes"))
{
p <- eval(parse(text=paste(dataset,"Probs",sep="")))
m <- melt(t(p))
title <- titles[[dataset]]
filename=paste("~/Dropbox/phd/results/graphs/",dat
David Winsemius writes:
> On Oct 22, 2010, at 12:50 PM, wrote:
>
>> Tal Galili writes:
>>
>>> I suspect that using "dev.copy2eps" Is not going to help you here.
>>>
>>> Please try again using:
>>>
>>> pdf(...) # Check: ?pdf
>>> for(i in something)
>>> {
>>> plot(things)
>>> }
>>> dev.
Could you please paste the exact code you are using? (the one with the pdf
and dev.off, outside the loop )
Contact
Details:---
Contact me: tal.gal...@gmail.com | 972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatist
On Oct 22, 2010, at 12:50 PM, wrote:
Tal Galili writes:
I suspect that using "dev.copy2eps" Is not going to help you here.
Please try again using:
pdf(...) # Check: ?pdf
for(i in something)
{
plot(things)
}
dev.off()
But give pdf() the file path.
Make sure you can make it work
Tal Galili writes:
> I suspect that using "dev.copy2eps" Is not going to help you here.
>
> Please try again using:
>
> pdf(...) # Check: ?pdf
> for(i in something)
> {
> plot(things)
> }
> dev.off()
>
> But give pdf() the file path.
> Make sure you can make it work with simple plots.
If you do it the way I just wrote, you will get 1 pdf file with many figures
inside it.
If you want several files, you can use something like:
png(filename = "Rplot%03d.png")
Instead of using "pdf" in my last example.
Keep this outside the loop :)
p.s: at this point you probably have numerous op
I suspect that using "dev.copy2eps" Is not going to help you here.
Please try again using:
pdf(...) # Check: ?pdf
for(i in something)
{
plot(things)
}
dev.off()
But give pdf() the file path.
Make sure you can make it work with simple plots. then check it on your
situation, and let us
There are several ways.
What I often use is:
pdf(...) # Check: ?pdf
for(i in something)
{
plot(things)
}
dev.off()
And it works fine.
Contact
Details:---
Contact me: tal.gal...@gmail.com | 972-52-7275845
Read me: www.talg
11 matches
Mail list logo