[R] Micro-point with pch=16?

Jim Lemon jim at bitwrit.com.au
Mon Apr 7 10:51:06 CEST 2014


On 04/07/2014 04:33 PM, Андрей Парамонов wrote:
> Hello!
>
> I'm trying to plot a 3D dataset as a scatter-plot, coding Z-axis values
> with point size. I pass the following parameters to "plot" function:
>
> type = 'p',
> pch = 16,
> cex = intensity/max(intensity)
>
> In my dataset, max(intensity)/min(intensity) is ~4000. However, visual
> points vary in radius by no more then 100 probably. Albeit default
> device isn't good at displaying micro-points, other devices (pdf, svg)
> can display such points just fine.
>
> Is there a way to produce micro-points with cex=0.001 and less?
>
Hi Andrey,
As the points help page says:

What happens for very small or zero values of cex is device-dependent: 
symbols or characters may become invisible or they may be plotted at a 
fixed minimum size.

Jim




More information about the R-help mailing list