Displaying 20 results from an estimated 100 matches similar to: "plot pch"
2008 Jul 14
2
position of a specific character
Hi All,
I'm wondering whether there is a quick way to know the position of a specific charcater in a long character:
for example
frg="((D:41.04,I:41.04):45.05,(((E:2.32,((G:0.67,J:0.67):0.44,H:1.11):1.21)"
and I would like to know that the 1st, 2nd, 26th, 27th, 28th ... character is "(", is there a quick way to do that?
Thanks!
Hua
2012 Jul 18
6
taylor expansions with real vectors
Dear list,
I have a big deal concerning the development of a Taylor expansion.
require(Matrix)
e1 <- as.vector(1:5)
e2 <- as.vector(6:10)
in order to obtain all the combinations between these two vectors following
a Taylor expansion (or more simply through a Maclaurin series) for real
numbers.
We have f(x) = f(0) + f'(0)(x-0) + f''(0)(x-0)^2/2! + ? + f^(k)(0)(x-0)^k/k!
2002 Apr 07
0
help with the "pch" option in plot.locfit
Dear All,
I am trying to plot a smoothed hazard funciton using the LOCFIT library.
Suppose my locfit model is "loc.fit", my plot command looks like this:
plot(loc.rw, lty="solid", pch=1, xlab="Age at Risk",
ylab="Hazard Rate", ylim=c(0, .5), lwd=2)
What's interesting is that whichever number I used in the "pch=" option,
I still get a line
2008 May 18
1
How to change col and pch between panels in xyplot
Dear R-helpers,
x <- rep(1:2, 4)
y <- c(2, 4, 3, 5, 1, 3, 2, 4)
w <- factor(rep(1:2, each = 4))
v <- rep(1:2, each = 2, 2)
xyplot(y ~ x | w, groups = v, type = 'b')
How do I tell xyplot to use four colors and four plot characters and
four line types? And how do I set up an appropriate key in each?
_____________________________
Professor Michael Kubovy
University of Virginia
2010 Apr 05
1
Using pch with the RGL library
Hi,
I am trying to compare two 3D plots. For that, I am trying to use the
"pch" parameter in the "points3d" function, but it is not working. Is
it implemented? Any suggestion?
Here goes a reproducible code. I wanted the second plot having
different symbols for the points.
x <- rbind(matrix(rnorm(100, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 1, sd = 0.3),
2013 Oct 15
1
how to set pch in auto.key for splom
Dear All,
I am using most current version of R (3.0.2) and lattice (0.20-24). But can
not set appropriate pch type with the following code. Could anyone help me?
splom(~iris[1:4], groups = iris$Species, pch=1:3, auto.key = list(space =
'top', columns = 3, pch=1:3))
Thanks
John
[[alternative HTML version deleted]]
2012 Aug 24
1
Suggestion: Specify default of "pch" in the manual
Both, in the manuals for par() and points() I could not find a note on
the default value of "pch". I think it would be rather helpful to add a
note that the default is 1 (in both manuals). This would, for example,
help users that want to draw a legend.
And yes, I know that one can obtain the default by inspecting par() but
I think for many users (especially beginneRs) this is not
1999 Mar 25
1
plot.formula and pch= (PR#149)
I'm not sure exactly where to point my finger with this one, but there
is a nasty surprise to the unsuspecting user.
There is no check on the length of the vector passed in the pch=
argument to plot, it is just recycled as necessary:
plot(1:10,1:10,pch=1:2)
gives alternating circles and triangles.
The nasty bits come up especially with plot.formula:
x<-1:10;y<-1:10
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:
2005 Aug 16
0
pch=NA in bxp.Rd (PR#8073)
I'd like to iterate my earlier request (#7737) to change the documentation
for 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:
x <- split(rlnorm(26e4), letters)
## NA generates small file
2008 Jul 28
1
cairo device and pch="+"
Dear list,
I have spotted what could be a memory leak somewhere.
The example below shows how to quickly use up RAM on a linux machine
(the example is taylored for a 2Gb machine, change the size of the matrix m
is needed).
# ---
m <- matrix(rnorm(130), nrow=6000, 6)
X11(type="cairo")
pairs(m)
# --- here the trouble starts (monitor the memory usage as the plot goes).
pairs(m,
2009 Sep 25
0
Wish for stripchart to handle pch %in% 21:25 with bg
Dear R-Devel,
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 internal color of the single point produced by points()
was honored but not the color of the points produced by stripchart().
My wish is
2012 Dec 07
1
documentation for legend(): possible missing info for pch.
In the documentation for graphics::legend(), the entry for "pch" is:
> pch: the plotting symbols appearing in the legend, either as
vector of 1-character strings, or one (multi character)
string. _Must_ be specified for symbol drawing.
If I did not misread them, examples in the same documentation page
suggest that it is also possible to pass integers.
2016 Aug 25
0
"plot.ts" doesn't respect the value of "pch" (+ blocked from Bugzilla signups)
> On Aug 24, 2016, at 5:59 PM, Gregory Werbin <greg.werbin at libertymail.net> wrote:
>
> I did a search on Bugzilla for "plot.ts" and didn't find anything on this issue. I tried to sign up for Bugzilla to report it, but my e-mail address didn't pass your "syntax checking" for a legal e-mail address.
>
> The bug is easily reproducible on my
2002 Oct 31
0
Changing pch spacing]
Wolfgang Viechtbauer wrote:
> Hello R-Helpers,
>
> plot(x, y, type="b", pch="1")
>
> plots x vs. y with both a line and the symbol "1" but how do I change
> the "spacing" of the symbol being plotted. In other words, I don't want
> to plot the "1" at every data point, but only at every kth point (things
> get too
2002 Nov 30
2
pch as single character
Dear friends - using windows xp and R1.6.1
when doing
x <- 12
as.character(x)
[1] "12"
plot(1,2,pch=as.character(x))
the interesting point is marked with: 1 whereas I would like to see 12.
In par() is specified under pch:
Either an integer specifying a symbol or a single character to be used as
the default in plotting points
How is that overridden ?
Best wishes
Troels
--------------
2005 Feb 21
1
its plot with pch-argument
Hi mighty R-gurus and other enthusiastics,
I just encountered this:
library(its)
x <- its(sort(rnorm(10)), as.POSIXct(Sys.time() + 1:10))
plot(x, type = "p", pch = c(rep("A", 5), rep("B", 5)))
Am I missing something if I expect that all the points labeled as 'A' should be below all those labeled as 'B'?
Thanks,
Jussi M?kinen
platform
2005 Mar 14
1
'pch' plot symbol with more than one character
R-help,
Argument 'pch' in 'plot' can only represent a single character.
Is it possible to represent, let's say, two instead?
Thanks in advance.
I'm running on Windows Xp
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 0.1
2005 Oct 02
1
plot question when type = "b" and pch is a vector
Dear R users,
I've been struggling some days with the following
problem: I'm interesting in producing the following
plot
x <- seq(0.01, 10, length = 20)
plot(c(0, 10), c(-20, 20), type = "n", xlab = "x",
ylab = expression(2 * alpha * log(x)))
pch. <- rep(NA, length(x))
for(i in 1:4){
pch.[7] <- as.character(i)
lines(x, 2 * i * log(x), type
2006 Dec 01
2
specify point shape for ggplot (equivalent to pch)?
Hi
is it possible to specify the shape of the point to be used in ggplot
(as with pch in plot)? I couldn't find anything in the help.
Thanks
Rainer
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Department of Conservation Ecology and Entomology
University of Stellenbosch
Matieland 7602
South Africa
Tel: +27 - (0)72 808 2975 (w)
Fax: +27 - (0)86 516 2782
Fax: