Displaying 20 results from an estimated 30000 matches similar to: "points(*, pch=NA) does *not* not draw the point (PR#6876)"
2001 Aug 22
3
X11 protocol errors after all x11 devices are closed (PR#1065)
> x11()
> dev.off()
null device
1
> x11()
> plot.new()
Warning messages:
1: X11 protocol error: BadAccess (attempt to access private resource denied)
2: X11 protocol error: BadAccess (attempt to access private resource denied)
This only happens if all x11 devices are shut down, so the X11 connection
is restarted. We had problems with this when the event handlers
were
2011 Dec 28
3
transparency using plot+points with sp classes
How can I make one point graphics with transparency
These are all sp classes:
plot(polygons_area,axes=TRUE,asp=1.5,main="Title",xlab="Latitude",
ylab="Longitude")
points(observations2000,type = "p",pch=21,col="green")
points(observation1999,type = "p",pch=21,col="blue")
points(reference.points,type =
2002 Dec 12
1
lattice/points and pch="c" inconsistencies
Hi,
The current lattice/grid packages seem to position character
plotting symbols (e.g., ".") differently than the base function
points. The following shows what I mean:
## plain old points() positions the pch="." right at y = c(0,1),
## and thus abline(h = c(0,1)) completely hides the points "."
## (provided the output device has enough resolution, like
2002 Nov 22
4
Small change to plot.xy
Hi everyone,
Is there any reason why we should not automatically coerce a factor
supplied as an argument to col in a plotting function? The following
modification (to R-1.6.1) seems pretty harmless
> plot.xy
function (xy, type, pch = 1, lty = "solid", col = par("fg"),
bg = NA, cex = 1, ...)
{
if (is.factor(col))
col <- codes(col)
2005 Nov 21
1
Howto? plot legend with no line behind the points
Hi R-help,
We are using R 2.2 on Win XP and have a detail question on how the
legend can be optimised.
We use the following;
-> plot(,type="b",...)
The lines in the plot do not cross the points. How can we obtain the
same effect in the legend? (points without a line through them..)
We tried setting the pt.bg to white but this did not help.
See script below.
thanks,
Jan
2008 Jul 20
4
drawing segments through points with pch=1
Please excuse me for asking such basic questions:
Here is my code
> y=c(1.21,0.51,0.14,1.62,-0.8,0.72,-1.71,0.84,0.02,-0.12)
> ybar=mean(y)
> ll=length(y);
> ybarv=rep(ybar,ll)
> x=1:ll
> plot(x,ybarv,pch=1)
> segments(x[1],ybar,x[ll],ybar)
What I get is a collection of small circles, with a segment "on top"
of the circles, which is almost what I want. But I
2001 Jul 10
1
color NA is allowed, but "NA" is not ... (yet)
In several places, we have the convention that col = NA means
`` don't draw '', e.g. for points() or rect().
For col = <vector> this only works when the vector is integer (numeric),
but not in other cases. I think this is a bug, even though not in the
strict sense, since we don't seem to claim it should work..
Example:
plot(1:10, col = c(1:4,NA,NA,4:1))
## fine
2012 May 09
2
plot betadisper, change of pch
Hello!
After performing an analysis with betadisper, package vegan I would like
to plot the results - so far, so good. But I would also like to "tune" a
little bit the plotting characters, as '+' and 'x' are a little to
similar...
My (boiled down) code:
[See session info at the bottom of the mail, vegan is vegan_2.0-3]
mod <- betadisper(mydata, mygroups,
2018 Mar 08
0
add single points to a level plot
Hi all,
I ran the code:
> s <- stack(replicate(2, raster(matrix(runif(100), 10))))
> xy <- data.frame(coordinates(sampleRandom(s, 10, sp=TRUE)),
+ z1=runif(10), z2=runif(10))
> levelplot(s, margin=FALSE, at=seq(0, 1, 0.05)) +
+ layer(sp.points(xy, pch=ifelse(pts$z1 < 0.5, 2, 3), cex=2, col=1),
columns=1) +
+ layer(sp.points(xy, pch=ifelse(pts$z2 < 0.5, 2,
2005 Mar 22
1
pch=NA (PR#7737)
I'd like to suggest changes to three help pages, regarding the use of
pch=NA to suppress plotting symbols. See below.
Arni
R 2.0.1 on WinXP
===
help(bxp)
===
The argument outpch=" " needs to be replaced with outpch=NA in two places.
I actually wrote this part of the documentation myself at one point, but
have now realized that pch=NA and pch=" " are not the same:
2018 Mar 08
1
add single points to a level plot
You need to load the package 'rasterVis'
> library(rasterVis)
HTH,
Eric
On Thu, Mar 8, 2018 at 5:11 PM, lily li <chocold12 at gmail.com> wrote:
> Hi all,
>
> I ran the code:
> > s <- stack(replicate(2, raster(matrix(runif(100), 10))))
> > xy <- data.frame(coordinates(sampleRandom(s, 10, sp=TRUE)),
> + z1=runif(10), z2=runif(10))
2009 Dec 04
1
Apparent different in symbol scaling between xyplot and grid.points
Dear R-users,
For the past few days, I have been trying to find the reason why some of
my plots were showing symbols of different sizes, while I thought I was
using the same .cex arguments everywhere. The problem is exemplified by
the following example code where the xyplot and grid.points functions
are used. The scaling factor is set to 0.84 in both the functions
settings, but one can see
2009 Mar 10
1
Lattice: Customizing point-sizes with groups
Hello,
I am creating a scatter-plot in lattice, and I would like to customize
the size of each point so that some points are larger and others
smaller. Here's a toy example:
library(lattice);
temp <- data.frame(
x = 1:10,
y = 1:10,
cex = rep( c(1,3), 5),
groups = c( rep("A", 5), rep("B", 5) )
);
xyplot(y ~ x, temp,
2004 Oct 29
3
Warning message if the plot statement breaks into 2 lines
Here is a curious observation. In
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 0.0
year 2004
month 10
day 04
language R
>
Try the following:
> Plot(c(1:100), type = "l
+ ")
Warning message:
plot type 'l
' truncated to first character in: plot.xy(xy, type, pch,
2007 Apr 23
2
plot.xy() with type="s" and huge data (PR#9629)
The following code snippet crashes R (under Windows and Linux) for both
R-2.4.1 and R-2.5.0 RC as of yesterday:
set.seed(1)
H <- rnorm(400000)
temp <- rnorm(400000)
plot(H, temp, type='s')
# (no, it was not my idea to do something like that!)
I *guess* it is some overflow in plot.xy() which calls
.Internal(plot.xy(xy, type, pch, lty, col, bg, cex, lwd, ...))
but
2009 Sep 23
1
stripchart with pch %in% 21:25 with bg
Dear all,
consider:
###
x <- round(rnorm(50))
stripchart(x, pch = 21, col = "black", bg = "pink", method = "jitter")
points(0.5, 1, pch = 21, col = "black", bg = "pink", cex = 2)
###
Under R 2.9.0 the points produced by stripchart are not colored,
while points() gives the desidered output (magnified here by cex).
I found a simple workaround
2018 Mar 08
3
add single points to a level plot
Hi all,
I'm trying to add single points with known coordinates to a level plot, but
could not find the proper answer. I got to know that layer() function is
good for this, but I don't know which package is related to this function.
The source is here:
https://stackoverflow.com/questions/28597149/add-xy-points-to-raster-map-generated-by-levelplot
but my question is a little different as I
2010 Aug 13
1
subsetting data points within confidence limit
Dear R-list
Suppose I have a data set stored in hmet, for which I did get confidence
limit on a linear regression as shown below.
My question is how I can subset only data points which are within the
confidence limit.
Thank you.
Keun-Hyung
---------------------------------------------------------------
Al=rnorm(100, 3)
Cd=rnorm(100, 0.2)
hmet=data.frame(Al=Al, Cd=Cd)
plot(Al,
2004 May 29
3
panel function in a conditioned lattice graphic
I'm trying to use plotting character to encode the variable "block"
from my dataset in a conditioned lattice graphic (R 1.9.0 on Mac OS
10.3.3). The data I'm using is the dataframe "dryoutcover" which is
here (4k):
http://anthony.darrouzet-nardi.net/downloads/dryoutcover.Rdata
The code that generates my graphic almost correctly is as follows:
xyplot(coversage ~
2003 Oct 03
1
Re: Bug#213857: r-base-core: xfig plot fails with invalid line type (PR#4401)
Graham,
Confirmed. I will pass that along to the R team. As 1.8.0 is in code freeze,
this may not get addressed, unfortunately.
Regards, Dirk
On Fri, Oct 03, 2003 at 03:16:35PM +1000, Graham Williams wrote:
> Package: r-base-core
> Version: 1.7.1.cvs.20030927-1
> Severity: normal
>
>
> $ R
>
> R : Copyright 2003, The R Development Core Team
> Version 1.8.0 beta