Entering edit mode
7.0 years ago
salamandra
▴
550
In R, whith:
pdf(file="path_to_file/filename")
makeVennDiagram(ol)
dev.off()
or:
png(file="path_to_file/filename")
makeVennDiagram(ol)
dev.off()
I get the error:
Error in dev.off() :
QuartzBitmap_Output - unable to open file 'path_to_file/filename'
and doesn't save the graph in the folder. Does someone know what is causing this error?
"..." stands for path_to_file/filename, my mistake. I tried as you said and it created a file in the working directory. But shouldn't be possible to define the directory directly with
png(file="path_to_file/filename")
?that's correct, you could do that! Also you may change your actual directory to the place where you want to do all the calculations by using
it allows to
setwd("path/to/dir/where/i/want/all/calculations")
but withpdf("path/to/dir/where/i/want/all/calculations")
it givesas i can setwd(), the problem isn't with 'path/to/dir/where/i/want/all/calculations'
you can setwd() because this is a directory.
You can't create a pdf, because again, this is a directory.
You need to give a filename (eg. myFile.pdf)
it worked out, thank you