I'm trying to enhance the dpi of a TIFF. image that I've made with ggplot2 but it's not saving anywhere.
Here goes the code
tiff("test.tiff", units="in", width=300, height=300, res=300)
ggplot(DatLong) +
geom_bar(aes(y = Percentage, x = Station , fill = Groups), stat = "identity") +
theme_minimal() +
scale_fill_manual(values = c("#003366", "#3366CC", "#993300", "#660099"))
dev.off()
After that this error keeps appearing
null device 1
I've tried shutting down R and start a new session but it keeps happening. It doesn't export the image file to the directory. Does anyone have a suggestion?
Cheers