[R] graph bugs using R on MAC

B77S bps0002 at auburn.edu
Sun Sep 18 21:57:54 CEST 2011


Have you been shown how to save a graph as a JPEG or PNG?

try this:

png("myGraph.png")
plot(your_data)
dev.off()

A png will appear in your working directory, which can be imported into the
Word document.
You can do the same with a JPEG

see ?jpeg or ?png and ?dev.off

HTH
 


bonnieyuan wrote:
> 
> This is has been bugging me for a long time. Nobody around me seems to  
> have this problem. I hope someone on the forum could help me.
> 
> When I generate a R graph and want to bring the image into Word. I  
> cannot copy and paste it like many of my classmates can do. The  
> "Select" in Edit menu have all options grayed out. So what I ended up  
> doing is to save it as pdf file and bring it into Word. But if I use  
> "Identify" in the Plot statement, there will be values labels on the  
> graph when you click on the observation. For some reason, these labels  
> don't show up in the pdf file.
> 
> So the last resort I have is prinscreen, which always have irrelevant  
> things showing.
> 
> I've tried updating R/OS and all softwares on my MAC, but nothing  
> seems to do anything. I have OX 10.6.8. Does this problem sound  
> familiar to anyone?
> 
> Thanks in advance!
> 
> Bonnie Yuan
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 


--
View this message in context: http://r.789695.n4.nabble.com/graph-bugs-using-R-on-MAC-tp3822460p3822480.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list