similar to: PDF too large, PNG bad quality

Displaying 20 results from an estimated 5000 matches similar to: "PDF too large, PNG bad quality"

2010 Jun 24
5
Best way to compute a sum
> a <- 0 ; for(i in (1:200000000)) a <- a + 1/i > b <- 0 ; for(i in (200000000:1)) b <- b + 1/i > c <- sum(1/(1:200000000)) > d <- sum(1/(200000000:1)) > order(c(a,b,c,d)) [1] 1 2 4 3 > b<c [1] TRUE > c==d [1] FALSE I'd expected b being the largest, since we sum up the smallest numbers first. Instead, c is the largest, which is
2017 Dec 14
2
delta and sd parameters for power.t.test
What is the rationale behind having both the delta and sd parameters for the power.t.test function? For the relevant noncentrality parameter, we only need the ratio delta/sd. If my effect size is given as Cohen's d, then I only got that ratio and not sd. As far as I see, in such a case, I can specify delta=d and leave sd at its default value 1. Is this correct or am I missing something?
2015 Nov 05
2
PDFs and SVGs containing rasterGrobs don't display correctly in some other software
I've just been trying to post-process some R-created heatmaps using Inkscape, but I can't get them to display correctly in that software. To reproduce: library(grid) r <- as.raster(matrix(runif(25), 5, 5)) pdf("test.pdf") grid.newpage() grid.raster(r, interpolate = FALSE) dev.off() This figure should be a five by five block of grey squares. This is what I see in the R GUI
2010 Jan 28
1
quartz() and dpi
Hello all, I am using quartz (on OS X obviously) to produce PDFs and PNGs from my plots, for later inclusion in LaTeX. I am typically using something like: plot(0) dev.print(quartz, file="foo.pdf", width=5, height=3) dev.print(quartz, file="foo.png", width=5, height=3, dpi=72) I want the sizes of the PDF and PNG to be *equal* in *inches*, which works with dpi=72. However,
2008 Oct 03
3
several postscript problems
Hello everyone, I'm currently trying to export a couple of graphs to pdf . Postscript would be fine too, but I'm using odd page dimensions, which seem to be overwritten when using the "ps2pdf" command. I'm using the pdfpages package in LaTeX to put 6 graphs onto one page (this is why it ought to be a pdf in the end). I have two problems: 1. I'm using
2009 Oct 23
1
Distance between axis and label adjusted automatically?
Is there a way to have the distance between label and axis adjusted automatically? This is interesting in particular for the y-axis, when it is not known in beforehand how many digits the numbers will have. It may happen then, that numbers and label overlap. All examples that I found work by estimating the required distance manually in beforehand and then providing large enough margins, or
2009 Dec 13
1
plot merging/compression with R
Dear list, i just encountered a problem concerning the export of multiple plots. is it possible to merge several PNGs into one PDF document? i know that this could be easily done by pdf(), but the outcome of this is /way/ too huge (> 15 MB, four plots) and to my knowledge there's no way to compress PDFs directly in R. Hence the PNGs that are saved one at a time and afterwards merged by
2008 Mar 04
1
preserve ctimes of *unchanged* directories on receiver
'rsync -a' updates the ctime on a directory even if no file in that directory has changed. A kind of workaround is to use '-O', but then the mtimes of directories are not preserved. (Usage example where this is important: maintain a copy of filesystem A in filesystem B, and use filesystem B as the source for incremental backups (e.g., with star). rsync is run before an
2008 Feb 22
1
--ignore-existing not as expected
Is this correct behavior? File `foo' gets overwritten with directory `foo', even though --ignore-existing is given. % rsync --version rsync version 3.0.0pre10 protocol version 30.PR17 Copyright (C) 1996-2007 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
2002 Feb 05
1
eps Portrait to pdf now rotated since gs6.5 --- why?
Hi list, this question has probably been answered but I haven't found a solution in the archives: The older ghostscript gs5.50 (debian,stable) deals well with R-plots: epstopdf yields pdfs with the same orientation as the eps-file. But, since gs6.5 (or earlier) the dimension of the plot is interpreted: if x-width exceeds y-width even a Portrait-eps is rotated to Landscape. A possible
2007 Mar 09
1
pdf device bounding box?
dear R wizards: I have a very simple suggestion/question. Would it be easy to change the pdf device so that it adds a BoundingBox around its output? (Under R 2.4.1, this seems not to be the case, because epstopdf under linux complains. Fortunately, it still works correctly.) This is not a big deal, but it would be nice if R did so, if only to help some pdf programs that are less adept at
2011 Jul 28
3
bug in dev.copy2pdf output?
Hi, Am using R 2.13.1 on Linux (Fedora). Is anybody else having problems with dev.copy2pdf xyplot output with the pch=1 (open circle) symbol? The symbols come out as "q" in the PDF. dev.copy2eps produces the correct results as does cairo_pdf. Other symbols produced with dev.copy2pdf seem ok. Thanks, Selwyn
2006 Sep 15
1
pdf default version
R has had the ability to generate pdfs with transparent colors for a couple of years now using pdf(..., version="1.4"). By default, Sweave uses just 'pdf' (without version 1.4), so a hack is needed when using Sweave to create pdfs with transparent colors. See http://tolstoy.newcastle.edu.au/R/help/04/11/6655.html I would find my work process simpler if R defaulted to
2011 Apr 16
1
CairoPDF, Fonts, and Windows 7
Hi All: I have some basic questions about Cairo graphics engine. I'm trying to use the Cairo package to produce PDF output, mainly because I perceive it to be easy to use with a wide variety of fonts. But right now, I'm stuck trying to figure out what fonts are available to be used with Cairo, specifically the CairoPDF function. I've been able to successfully produce some test PDFs
2004 Apr 03
2
a fix for rotated PDF graphs
Hi, I have found references for the following problem in the list archives, but no nice solution. So I decided to post one I came up with. The problem is that graphs output as eps files, for example using ps.options(onefile=FALSE, paper="special", width=8, height=8, horizontal=FALSE, pointsize=12) get rotated when I convert them to pdf using epstopdf. Both ghostview and
2007 Oct 04
3
pdf() device uses fonts to represent points - data alteration?
Hello all, I discovered that the pdf device uses fonts to represent "points" symbols (as in plot(...,type="p",...) ). Namely it uses ZapfDingbats with symbol U+25cf. This can lead to problems when the font is not available, or available in another version (such as points being replaced by other symbols, or worst: slightly displaced). Furthermore, it also causes
2008 May 21
2
image (PR#11493)
Full_Name: Joseph Scandura Version: 2.7.0 OS: Mac 10.5 Submission from: (NULL) (140.251.50.94) Since updating to 2.7.0 all plots that use image() (heatmap, etc...) now draw visible boxes around each rectangle in the plot. When there are many rectangles the surrounding color becomes dominant over the rectangle color and the overall image is borderline useless.
2006 Nov 25
2
Effect.Appear and PNG on IE6
Hi to all, I''m using an Effect.Appear on a div that have a PNG 24 (with alpha transparency). Works prefectly on all excecpt... IE6 that do not render alpha channel on PNGs. So I wrote a conditional comment to apply the propietary IE filter to load alpha adding filter: in a style tag. Well, during Effect.Appear, appear a black png background on the alpha. Have workarounds or tips to fix
2008 Apr 16
1
Converting from encapsulated postscript to encapsulated pdf
I have several old encapsulated postscript graphics generated by R that I want to include in a LaTeX Beamer presentation so I want them in pdf. Under Ubuntu linux typing convert z.eps z.pdf (to use ImageMagick) results in a nice looking graphic but the bounding box is lost. Doing convert z.eps z.epdf results in a fuzzy image with a good bounding box. Does anyone have a nice solution?
2011 Apr 18
4
How to get R to compile with PNG support
Dear R devel list, Good morning; I'm with the Sage (http://www.sagemath.org) project. (Some of you might have seen my talk on this at last summer's useR conference). We have some rudimentary support for using R graphics in various cases, which has proved useful to many of our users who want to go back and forth between R and other capabilities within Sage. Unfortunately, the way we