Prof Brian Ripley wrote:
On Wed, 24 Nov 2004 [EMAIL PROTECTED] wrote:
On 24-Nov-04 Witold Eryk Wolski wrote:
Hi,
I want to draw a scatter plot with 1M and more points
and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert
it to pdf. This looks
Hi Andy,
On 25-Nov-04 Liaw, Andy wrote:
From: [EMAIL PROTECTED]
[...]
X-round(rnorm(1e6),3);Y-round(rnorm(1e6),3)
system.time(unique(X))
[1] 0.74 0.07 0.81 0.00 0.00
system.time(unique(cbind(X,Y)))
[1] 350.81 4.56 356.54 0.00 0.00
Do you know if majority of that time is spent
(Ted Harding) [EMAIL PROTECTED] writes:
I want to look into this a bit more systematically (I have
an idea why 'unique' may be taking longer on the array from
'cbind' than on the dataframe),
Just look inside the functions. One is pasting columns together, the
other is using a paste()
Hi,
I want to draw a scatter plot with 1M and more points and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert it to pdf.
This looks OK if printed but if viewed e.g. with acrobat as document
figure the quality is bad.
Anyone knows a way
On Wed, 2004-11-24 at 16:34 +0100, Witold Eryk Wolski wrote:
Hi,
I want to draw a scatter plot with 1M and more points and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert it to pdf.
This looks OK if printed but if viewed e.g. with
On 24-Nov-04 Witold Eryk Wolski wrote:
Hi,
I want to draw a scatter plot with 1M and more points
and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert
it to pdf. This looks OK if printed but if viewed e.g. with
acrobat as document
Marc/Eryk,
I have no experience with it, but I believe the hexbin package in BioC was
there for this purpose: avoid heavy over-plotting lots of points. You might
want to look into that, if you have not done so yet.
Best,
Andy
From: Marc Schwartz
On Wed, 2004-11-24 at 16:34 +0100, Witold
Hi,
I tried the ps idea. But I am using pdflatex.
You get a even larger size reduction if you convert the ps into a pdf
using ps2pdf.
But unfortunately there is a quality loss.
I have found almost a working solution:
a) Save the scatterplot without axes and with par(mar=c(0,0,0,0)) as png .
b)
On Wed, 24 Nov 2004, Witold Eryk Wolski wrote:
Hi,
I want to draw a scatter plot with 1M and more points and save it as pdf.
Try the hexbin Bioconductor package, which gives hexagonally-binned
density scatterplots. Even for tens of thousands of points this is often
much better than a
Hi,
Yes, indeed the hexbin package generates very cool pix. They look great.
I was using it already.
But this time I am interested in visualizing exactly the _scatter_ of
some extreme points.
Eryk
Liaw, Andy wrote:
Marc/Eryk,
I have no experience with it, but I believe the hexbin package in
On Wed, 24 Nov 2004 [EMAIL PROTECTED] wrote:
On 24-Nov-04 Witold Eryk Wolski wrote:
Hi,
I want to draw a scatter plot with 1M and more points
and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert
it to pdf. This looks OK if printed but if
] scatterplot of 10 points and pdf file format
Hi,
I want to draw a scatter plot with 1M and more points and
save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert it to pdf.
This looks OK if printed but if viewed e.g. with acrobat
On Wednesday 24 November 2004 07:34, Witold Eryk Wolski wrote:
Hi,
I want to draw a scatter plot with 1M and more points and save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert it to pdf.
This looks OK if printed but if viewed e.g. with
: Wednesday, November 24, 2004 7:35 AM
To: R Help Mailing List
Subject: [R] scatterplot of 10 points and pdf file format
Hi,
I want to draw a scatter plot with 1M and more points and
save it as pdf.
This makes the pdf file large.
So i tried to save the file first as png and than convert it to pdf
]
cc:
Sent by: Subject: [R] scatterplot of
10 points and pdf file format
I would strongly suggest a different method to present the data such as a
contour plot or 3D bar plot. An XY plot with a million points is unlikely to
be readable unless it is produced as a large format print. At 200 DPI
printed, 1,000,000 discrete points requires a minimum of a 5 inch (12.7
How about the following to plot only the 1,000 or so most extreem points
(the outliers):
x - rnorm(1e6)
y - 2*x+rnorm(1e6)
plot(x,y,pch='.')
tmp - chull(x,y)
while( length(tmp) 1000 ){
tmp - c(tmp, seq(along=x)[-tmp][ chull(x[-tmp],y[-tmp]) ] )
}
points(x[tmp],y[tmp], col='red')
now
On Wed, 24-Nov-2004 at 10:22AM -0600, Marc Schwartz wrote:
| On Wed, 2004-11-24 at 16:34 +0100, Witold Eryk Wolski wrote:
| Hi,
|
| I want to draw a scatter plot with 1M and more points and save it as pdf.
| This makes the pdf file large.
| So i tried to save the file first as png and than
On 24-Nov-04 Prof Brian Ripley wrote:
On Wed, 24 Nov 2004 [EMAIL PROTECTED] wrote:
1. Multiply the data by some factor and then round the
results to an integer (to avoid problems in step 2).
Factor chosen so that the result of (4) below is
satisfactory.
2. Eliminate duplicates in
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 16:37 PM
To: R Help Mailing List
Subject: RE: [R] scatterplot of 10 points and pdf file format
On 24-Nov-04 Prof Brian Ripley wrote
On 25-Nov-04 Ted Harding wrote:
'unique' will eat x for breakfast, indeed, but will have some
trouble chewing (x,y).
I still can't think of a neat way of doing that.
Best wishes,
Ted.
Sorry, I don't want to be misunderstood.
I didn't mean that 'unique' won't work for arrays.
What I meant
On 25-Nov-04 Austin, Matt wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 16:37 PM
To: R Help Mailing List
Subject: RE: [R] scatterplot of 10 points and pdf file format
On 24-Nov-04
From: [EMAIL PROTECTED]
On 25-Nov-04 Ted Harding wrote:
'unique' will eat x for breakfast, indeed, but will have some
trouble chewing (x,y).
I still can't think of a neat way of doing that.
Best wishes,
Ted.
Sorry, I don't want to be misunderstood.
I didn't mean that
Another possibility might be to use a 2d kernel density estimate (eg.
kde2d from library(MASS). Then for the high density areas plot the
density contours, for the low density areas plot the individual
points.
Hadley
__
[EMAIL PROTECTED] mailing list
24 matches
Mail list logo