Home > Blockchain >  How to plot a high resolution image in ggplot without saving the file?
How to plot a high resolution image in ggplot without saving the file?

Time:02-11

I am working on a restricted data online which I do not have access to. I can still get the outputs of my codes, but I cannot access any saved files of the outputs. Options like ggsave and other ones permit to have high-resolution quality figures, but then I cannot use these as I do not have access to the folders. Is there another way to produce these figures without having to save them? I can have access to the figures that plot in the R interface.

Let's suppose we use this code:

plot= ggplot(mtcars, aes(displ, hwy))  
      geom_point()  
      geom_smooth()

If we type plot, R will display the graph. Is there a way to modify its resolution, length and width? and then to type plot and get these modifications?

CodePudding user response:

For running remote scripts (e.g. via ssh) that output a svg representation of a plot, you might consider using example

  • Related