Displaying 20 results from an estimated 65 matches for "ggsave".
2009 Aug 20
1
ggsave to .png bug in ggplot2 (?)
Text is really small and legend boxes are huge in this plot when saved to
.png with ggsave. Plot is correct (i.e. looks the same as the screen) when
saved with dev.print. Saving to .pdf with ggsave give the correct output.
I'm a noob at ggplot2 so this may be user error rather than a bug. However
the interface to ggsave seems simple enough to exclude many possibilities
for screwing...
2010 Feb 24
3
ggsave in Linux
I have a script that creates a qplot that is then saved as a .png file which
works fine on Windows. But I also work on Linux servers via Putty and would
like to be able to create and save my plots to my working directory. Is
there a way I can ggsave my qplot without utilizing X11 in Linux? I don't
need to view the plot in Linux, I just want the plot created and immediately
saved to my working directory.
I get this error:
Error in grDevices::png(..., width = width, height = height, res = dpi, :
X11 is not available
--
View this messag...
2009 Jul 22
1
Link to documentation in another package
Dear all,
One of the functions that I wrote (ggsave.latex) extents the
functionality of a function (ggsave) in another package (ggplot2).
Instead of copying all the information I would like to create a link in
the helpfile of ggsave.latex to the helpfile of ggsave. I tried
\code{\link{ggsave}} and \code{\link{ggplot2::ggsave}}, but neither
worked. B...
2013 Aug 19
2
Problemas con ggsave(paste('img/',plotName,'.png', sep='')
Estimados usuarios de R:
Soy nuevo en R, le ruego disculpa por mi *Ignorancia*.
Estoy corriendo la siguiente instruccion,
ggsave(paste('img/',plotName,'.png', sep='')
y resulta el error:
ggsave(paste('img/',plotName,'.png', sep='')
Saving 7.32 x 4.87 in image
Error in grDevices::png(..., width = width, height = height, res = dpi, :
unable to start png() deviceIn add...
2013 Aug 26
0
Problemas con ggsave(paste('img/', plotName, '.png', sep='')
...de Windows. Este cambio debería corregir el
error:
unable to open file 'img/BurglaryKde2d.png'
Saludos.
2013/8/26 Linis Guerrero <linisguerrero28@gmail.com>
> Sr. Freddy.
>
> Todo aparentemente se hizo bién.
>
> Al parecer tengo problemas com los funciones ggsave y paste. No lee y
> como no tengo experiencia en R, se me dificulta.
> Agradezco su ayuda.
>
>
>
>
>
>
> El 25 de agosto de 2013 13:44, Freddy Omar López Quintero<
> freddy.vate01@gmail.com> escribió:
>
> Estimado Linis,
>>
>> Antes que nada, ac...
2017 Oct 13
1
[FORGED] can't print ggplot with Chinese characters to pdf files
Hi
Instead of ...
ggsave("test_plot_chinese.pdf", m2)
... try ...
cairo_pdf("test_plot_chinese.pdf")
print(m2)
dev.off()
Paul
On 13/10/17 02:12, John wrote:
> I install the Chinese font "Kaiti TC" on my mac, but I can't print the
> figures to pdf file by "marrangeGrob"...
2013 Aug 23
0
Problemas con ggsave(...). Estadística Espacial
...stimados usuarios de R:
Estoy corriendo el código de aqui:
http://www.r-bloggers.com/visualizing-baltimore-2-vacant-property-and-some-more-crime/
y correr la siguiente instruccion:
saveKde2Plot(burgDens, 'BurglaryKde2d', 'Burglary\n Density')
Esta función incluye el comando ggsave( ... ), que genera el
siguiente error:
Saving 7.32 x 4.87 in imageError in grDevices::png(..., width = width,
height = height, res = dpi, :
unable to start png() deviceIn addition: Warning messages:1: In
grDevices::png(..., width = width, height = height, res = dpi, :
unable to open file ...
2017 Oct 13
4
[FORGED] can't print ggplot with Chinese characters to pdf files
...d cairo DLL
>
> Is there anything else I need to install?
>
> Thanks,
>
> John
>
> 2017-10-12 19:24 GMT-07:00 Paul Murrell <paul at stat.auckland.ac.nz
> <mailto:paul at stat.auckland.ac.nz>>:
>
> Hi
>
> Instead of ...
>
> ggsave("test_plot_chinese.pdf", m2)
>
> ... try ...
>
> cairo_pdf("test_plot_chinese.pdf")
> print(m2)
> dev.off()
>
> Paul
>
>
> On 13/10/17 02:12, John wrote:
>
> I install the Chinese font "Kaiti TC&qu...
2017 Oct 12
2
can't print ggplot with Chinese characters to pdf files
I install the Chinese font "Kaiti TC" on my mac, but I can't print the
figures to pdf file by "marrangeGrob" command, which is in the package
"gridExtra". Error message after I type "ggsave(......)" (last line of the
program):
"Saving 7.47 x 5.15 in image
Error in grid.Call.graphics(L_text, as.graphicsAnnot(x$label), x$x, x$y, :
invalid font type
In addition: There were 50 or more warnings (use warnings() to see the
first 50)"
How can I install the font so that I c...
2017 Oct 13
0
[FORGED] can't print ggplot with Chinese characters to pdf files
...I got this error message:
Warning message:
In cairo_pdf("test_plot_chinese.pdf") : failed to load cairo DLL
Is there anything else I need to install?
Thanks,
John
2017-10-12 19:24 GMT-07:00 Paul Murrell <paul at stat.auckland.ac.nz>:
> Hi
>
> Instead of ...
>
> ggsave("test_plot_chinese.pdf", m2)
>
> ... try ...
>
> cairo_pdf("test_plot_chinese.pdf")
> print(m2)
> dev.off()
>
> Paul
>
>
> On 13/10/17 02:12, John wrote:
>
>> I install the Chinese font "Kaiti TC" on my mac, but I can't pri...
2008 May 12
2
ggplot2: font size mismatch for pdf output
...of fonts used in legends
and axis labels?
library(car)
library(ggplot2)
qp <-qplot (education , income , shape=type , size=women , colour=prestige ,
xlab="Education" , ylab="Income", data=Prestige)
+ scale_y_continuous(limits=c(NA, 20000))
qp + scale_size(to=c(1,8))
ggsave(file="prestige-ggplot.png", width=6, height=5) # OK
ggsave(file="prestige-ggplot.pdf", width=6, height=5) # fonts too large
-Michael
2009 Apr 10
1
png with ggplot on windows xp
...Effect","Power","N")
p <- ggplot(data=myData,aes(x=Effect,y=N))
p <- p+geom_point(aes(shape=factor(Power))) +
geom_line(aes(group=factor(Power)))
p <- p+scale_x_continuous(expression("Effect Size as "*R^2))
p <- p + scale_shape(name="Power")
ggsave(file = "myoutput1.png")
ggsave(file = "myoutput1.pdf")
> sessionInfo()
R version 2.8.1 (2008-12-22)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United...
2017 Oct 16
0
[FORGED] can't print ggplot with Chinese characters to pdf files
...o install?
>>
>> Thanks,
>>
>> John
>>
>> 2017-10-12 19:24 GMT-07:00 Paul Murrell <paul at stat.auckland.ac.nz
>> <mailto:paul at stat.auckland.ac.nz>>:
>>
>>
>> Hi
>>
>> Instead of ...
>>
>> ggsave("test_plot_chinese.pdf", m2)
>>
>> ... try ...
>>
>> cairo_pdf("test_plot_chinese.pdf")
>> print(m2)
>> dev.off()
>>
>> Paul
>>
>>
>> On 13/10/17 02:12, John wrote:
>>
>>...
2017 Oct 20
0
[FORGED] can't print ggplot with Chinese characters to pdf files
...;-p1+theme(text = element_text(family = "Kaiti TC"))
p2<-p2+theme(text = element_text(family = "Kaiti TC"))
p<-array(list(NA), dim=2)
p[[1]]<-p1
p[[2]]<-p2
p_series <- lapply(1:(length(p)), function(.x) p[.x][[1]])
m2 <- marrangeGrob(p_series, nrow=2, ncol=1)
#ggsave("test_plot_chinese.pdf", m2)
cairo_pdf("test_plot_chinese.pdf")
print(m2)
dev.off()
2017-10-12 19:55 GMT-07:00 Paul Murrell <paul at stat.auckland.ac.nz>:
> Hi
>
> By the looks of it, you need to install Cairo graphics ...
>
> https://www.cairographics....
2016 Apr 09
3
How to print the graphs in landscape/portrait orientation
...roduce a pdf file
with graphs in landscape orientation on my Windows PC, while they produce a
pdf file with the same graphs, but in portrait orientation:
*p2 <- lapply(1:(2*n), function(.x) xyz_outl[.x][[1]]) #a sequence of
graphs made by ggplot*
*m2 <- marrangeGrob(p2, nrow=3, ncol=2) *
*ggsave("xyz.pdf", m2)*
Question: how can I let the graphs printed in landscape orientation on
my Mac? I try to add the following line before the above code, but it does
not work.
*pdf(paper = "Usr")*
Thanks!
[[alternative HTML version deleted]]
2012 Sep 30
2
adjust font in ggplot2 to LaTeX document
Hi,
how can i adjust the font in a ggplot2 qplot so that it will look
similar to the LaTeX font?
Computer Modern Sans Serif in the same size would be nice.
My output device is
ggsave(filename="test.pdf", width=5.5, height=3, dpi=300)
and i will include the graphic with 5.5 inch in LaTeX.
I found some pages about that topic but all solutions that i found have
been very complicate and confusing to me.
But the articles have been from 2009 too, so i guess there will be...
2009 Mar 11
1
Ggplot2: saving a grid with multiple plots
Hi all,
I have managed to create a figure on the screen with multiple plots in
it. Something like the example below. When I save that with ggsave(),
only the last plot gets saved (pPath in the example) instead of the
entire figure. Any suggestions how I can save this kind of figures
automated?
Thanks,
Thierry
library(ggplot2)
pPoint <- qplot(unemploy/pop, psavert, data=economics)
pPath <- qplot(unemploy/pop, psavert, data=economics,...
2008 Nov 21
0
ggplot2 - version 0.8
...t for varying scales in rows and columns
* facet_wrap: new faceter which wraps a 1d ribbon of panels into 2d,
in a similar way to lattice
* geom_bin: gains a drop argument to control whether or not 0 count
bins should be removed
* geom_path and geom_line gain arrows argument to match geom_segment
* ggsave now checks that you are using it with a ggplot plot
* ggsave now produces postscript files that are suitable for embedding
in another document
* ggsave now recognises the .svg extension and will produce svg files,
if possible
* ggsave: default dpi changed to 300, on the assumption that you are
savi...
2008 Nov 21
0
ggplot2 - version 0.8
...t for varying scales in rows and columns
* facet_wrap: new faceter which wraps a 1d ribbon of panels into 2d,
in a similar way to lattice
* geom_bin: gains a drop argument to control whether or not 0 count
bins should be removed
* geom_path and geom_line gain arrows argument to match geom_segment
* ggsave now checks that you are using it with a ggplot plot
* ggsave now produces postscript files that are suitable for embedding
in another document
* ggsave now recognises the .svg extension and will produce svg files,
if possible
* ggsave: default dpi changed to 300, on the assumption that you are
savi...
2008 Aug 29
1
ggplot2: Changes to grobs not saved to file output
Hello,
Maybe I missed something - most likely .:-(
I create a gplot and then makes some changes to the plot using grid graphics
functions. These changes show up on the display OK, but when I save using
ggsave() the grid changes do not show up. How do I save the plot with these
changes?
Thanks in advance.
--
View this message in context: http://www.nabble.com/ggplot2%3A-Changes-to-grobs-not-saved-to-file-output-tp19220492p19220492.html
Sent from the R help mailing list archive at Nabble.com.