如何在全屏上显示图形? [英] How show graph on full screen?
本文介绍了如何在全屏上显示图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 ggplot2
绘制图形.它具有背景图像作为我的屏幕墙纸,我想在其上绘制图形并将其呈现为 png
图像,并且希望图形适合我的计算机屏幕,该怎么做.正在绘制以将图像缩放为较小尺寸以适合图形!
I am plotting a graph using ggplot2
. It has background image as my screen wall paper I want to plot graph over it and render it as png
image.And I want my graph to fit on my computer screen.How can I do that.When I am plotting it scales the image to smaller to fit in the graph!!
b <-readPNG("ao.png")
p <- ggplot(mydata, aes(ms,x=x,y=-y)) + background_image(b) +
geom_path(color='blue') + geom_point(color='blue')
p
我正在使用此代码,图像是屏幕的屏幕截图,并且在输出中将其缩放以适合图形!
I am using this code, image is screen-shot of my screen and in the output it is scaled to fit into the graph!
推荐答案
您可以做类似的事情
png(file="saving_plot1.jpeg",with=800,height=600) # check the parameters
p # your plot
dev.off()
或者您可以使用绘图窗格,然后使用"export"
or you could use the plot pane and then use "export"
这篇关于如何在全屏上显示图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文