Skip to content

How to vectorize plot graphic?

5 messages · Carl Witthoft, Jeff Newmiller, Alexander Shenkin

#
Off the top of my head,  I'd suggest trying ggsave()  with the extension
".svg" .  I realize that SVG files are not recognized by some image display
apps (Microsoft Windows I'm looking at YOU), but IMHO it's the best choice 
for vectorized images.


Alexander Shenkin wrote

            
--
View this message in context: http://r.789695.n4.nabble.com/How-to-vectorize-plot-graphic-tp4681424p4681427.html
Sent from the R help mailing list archive at Nabble.com.
#
You have mentioned nothing about the device you are writing the plot to. If to the default and you are copying it from there as a bitmap, then what you are describing sounds as expected. Read the R Input/Output manual (again) for other output options.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
Alexander Shenkin <ashenkin at ufl.edu> wrote:
#
Thanks Carl.  Yeah, I can get vectorized graphics out via
ggsave("temp.pdf") too.  But I need to add the graphic to a word doc on
windows.  Hence the desire to use wmf, which should induce a vector
format (shouldn't it?).
On 12/1/2013 10:39 AM, Carl Witthoft wrote:
#
Thanks Jeff.  I'm not sure to which manual you are referring.  Nothing
like what you mention is found here:
http://cran.r-project.org/manuals.html .  Perhaps you're referring to
The Data Import/Export Manual, but that wouldn't make sense.  Googling
"R Input/Output manual" doesn't help.

Regarding the device, I'm in R-Studio, plotting to the standard device
there (I suppose).  In any case, I'm not totally sure what the interface
between R-Studio's plot window and the R instance is.  I think that, as
you say, what I'm getting is as expected.  I zoom and the plot zooms as
expected.  So, I guess that part is solved.  However, the writing to
.wmf as a bitmap instead of a vector is still a mystery to me.

Thanks,
Allie
On 12/1/2013 12:29 PM, Jeff Newmiller wrote: