I write these commands in R to drow my chart
pdf("results/boxplot.pdf")
boxplot(x)
dev.off()
but in the "results" folder just an empty pdf with no boxplot is created. And when I open the pdf it says "there was an error opening this document". This file is already open or in use by another application". And this problem also occurs when I want to draw a heatmap. What should I do?
Thank you for your answer I ran dev.off() many times but it didn't work. after each dev.off says this:
dev.off()
, notdev.off
.thank you very much.
It worked. thanks.
shouldn't that be:
?
Can work, too.