Displaying 20 results from an estimated 2000 matches similar to: "Stripplot - multiple plotting characters"
1999 May 12
0
Problem with stripplot
I have had a problem with stripplot. Documentation does say that method
="stack" is only appropriate for granular data, but I don't think that
means it should fall over.
> difference
[1] 2.0 1.3 2.8 -2.6 -0.4 -0.4 -1.2 -1.4 -1.0 1.2 -2.6 -1.9
> stripplot(difference)
> stripplot(difference,method="jitter")
> stripplot(difference,method="stack")
2010 Jun 17
2
Multiple plots in a single page and stripplot()
I want to make a 2x2 plot on a single page, using stripplot() and boxplot().
I tried the following two alternatives with mfrow() and layout(), but none
of them worked.
library(lattice)
par(mfrow=c(2,2))
boxplot(X1 ~ Y, data=tst1, horizontal=T, las=1)
boxplot(X2 ~ Y, data=tst1, horizontal=T, las=1)
stripplot(Y ~ X1, data=tst1)
stripplot(Y ~ X2, data=tst1)
par(mfrow=c(1,1))
nf <-
2003 Jan 15
2
[lattice] lines for stripplot (like dotplot) or jitter for dotplot?
I'd like to use stripplot for some plots because I want to use
the jitter parameter. On the other hand, I'd like to use dotplot
because I'd like to have the horizontal lines that it includes.
dotplot doesn't have a jitter option and I'm not having any
success with getting panel.grid(h=-1) with stripplot. Can anyone
show me how to make dotplot-like lines on a stripplot? Or
2006 Dec 05
1
Horizontal stripplot
I have a plot similar to the following
library(lattice)
stripplot(1:15, rep(1:3, each=5))
In order to save space for a presentation, I would like to have
horizontal strips instead of vertical. The argument 'horiz' turns the
arguments around, but not the plot. The documentation for 'stripplot'
('xyplot'), 'panel.stripplot' and the FAQ do not seem to provide
2011 Apr 23
1
Vertical bwplot and stripplot
Hi,
I'd like to change the default orientation of bwplot() and stripplot()
so the plots are displayed vertically. Passing horizontal=FALSE into
stripplot in the simple code below doesn't seem to be the answer.
library(lattice);
x <- rnorm(100);
y <- as.factor(sapply(1:100, function(k) sample(c("A","B","C"), 1,
prob=c(1/2, 1/3, 1/6))));
my.df <-
2009 Sep 26
1
Lattice, stripplot (xyplot), plotting data with median line, numeric x-axis
All,
On p.52 of Deepayan Sarkar's Lattice book there is a nice plot of showing
residuals with median lines superimposed or various groups:
library("lattice")
stripplot(sqrt(abs(residuals(lm(yield~variety+year+site)))) ~ site,
data = barley, groups = year, jitter.data = TRUE, type = c("p", "a"), fun =
median)
Suppose we wanted to make a similar plot for a
2012 Jun 29
3
Data scaled by lattice::stripplot
For the following example,
> library(lattice)
> df<-data.frame(i=1:100,p=runif(100),id=rep(c('a','b'),100))
> summary(df[,'p'])
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.01165 0.33580 0.57520 0.53290 0.74540 0.98610
> stripplot(p~i|id,df)
The plot that is output is as expected with the exception that the values
are scaled by a factor of 100 in
2006 Dec 16
1
Seeking advice on lattice package in R2.4.0 concerning stripplot
Dear all,
I am using the R 2.4.0 environment on Windows XP SP2
machine and trying to use the lattice package version
0.14-9 which you have kindly written to share with the
R community.
I have a question concerning the stripplot which I'd be very
grateful if you can kindly advise me on:
I used the dataset called trydata to plot a graph using
stripplot (dataset attached), and the scripts
2004 Sep 24
2
bwplot panels like stripplot
I would like to plot horizontal box-and-whisker plots in lattice where
each
factor has its own panel and scales are "free." Below is a stripplot
version
of what I have in mind. Substituting "bwplot" doesn't work. I know
it's gotta
be simple but I can't find the way . . .
x <- c(runif(100, 0, 1), runif(100, 1, 2), runif(100, 2, 3))
y <-
2008 Nov 14
1
Splitting a lattice stripplot across several pages
Hello,
I have a stripplot with 200+ labels i.e i have network connections.
The y-axis are the server port numbers and am graphing the number of
packets in a connection. Roughly
stripplot(totpacks~portnum,data=network)
Due to the large number of server ports in my dataset, the y-axis
labels overlap so I would like to split it across several panels(1
panel per page) with about 25-50 per
2010 May 27
1
stripplot, lattice
hello,
i can't figure out how to set position of panels of my stripplot -
i`d like the panels of one level of the factor stage (nr. of panels within
each stage, A: 12, B: 12, C: 12, D: 4, each panel representing a site) to be
in one column, with A to D from left to right and with descending site.nr at
each row.
like:
A1 B1 C1 D1
A2 B2 .. ..
A3 .. ..
..
how is this achieved?
any help
2005 Jun 28
3
Help with stripplot
For the following code is there a way to make the jitter all line up horizontally, instead of them being just randomly spread around a value. So for ex if there are multiple values at 63 for genotype wt then all the values should be plotted on the same y value of 63 but spaced apart by a certain factor or noise..
library(lattice);
dataFrame <- as.data.frame(t(structure(c(
64,'wt',
2011 Jan 27
1
How to xyplot without borders
Hello I have the following data.frame and xyplot. I need this plot without
the borders. Does anybody know how to get this xyplot without borders o with
white borders?
Thank's in advance
Juan Hernández
my.label <- data.frame(quantil=rep(20,8),
my.factor=factor(c('FA','FB','FC','FD','FE','FG','FH','FI')))
library(lattice)
2004 May 04
1
Simple lattice graphics question
Dear all,
I am using panel graphics to do a stripplot of a variable versus a shingle
and putting a loess curve on the stripplot. I want the data jittered, but I
can't seem to get the panel function to work. This jitter's the data, but
of course doesn't give me the loess:
> stripplot((g[,3]) ~ c,jitter=T,pch=".",scales=list(y=list(log=T)))
But this doesn't give me
2000 Apr 07
1
lme questions (was difference between splus and R)
> Date: Fri, 7 Apr 2000 09:55:08 -0400 (EDT)
> From: Faheem Mitha <faheem at email.unc.edu>
[I have given a more meaningful subject line.]
> On Fri, 7 Apr 2000, Prof Brian D Ripley wrote:
>
> > On Thu, 6 Apr 2000, Faheem Mitha wrote:
> >
> > > I'm running splus 5 on a solaris platform remotely, and running R on linux
> > > on my home machine.
2007 Jan 14
1
Asterisk not hanging up calls
I have noticed that Asterisk (version 1.2.13) is not hanging up a call
when the wifi handset moves out of range.
My setup is Nokia E61 connected to wifi access point (private IP range)
and then to server on internet (public IP).
I have been testing using the talking clock application, and walking out
of range does not hang up the call.
The call will continue for hours even though the handset
2008 Nov 28
0
Calls drop after a couple of minutes.
I have been encountering a rather hard to debug problem for the last
couple of months:
* Calls are setup fine.
* After a couple of minutes, two way audio becomes one-way and the
remote or local party drops out of the call.
Setup:
* Nokia E71i sip on NAT'd network (multihomed linux box)
* Remote asterisk 1.4.21 on Ubuntu on public network
* using a Finera/Betamax provider to route calls to
2007 Mar 20
1
lattice key (legend) with both points and lines
Hello,
I'm running into a frustrating problem with the legend on a lattice
plot I'm working with. The plot is a stripplot with a panel.linejoin
() line running through the mean of each of the categories. Thus
there are both points and lines in the plot.
In trying to make a key for the plot, I can't figure out how to make
a legend for both the points and the lines. What I'd
2008 May 01
1
Locale problem with umlauts in factor levels in 2.7.0 (patched) from grid or lattice
With 2.7.0 patched (not tested with 2.0.0), I get an error message in a
program that ran correctly in R 2.6.2 when the grouping factor of a
stripplot contains an Umlaut:
I am aware that there are a few locale-changes in R 2.7.0, but I could not
easily
locate who's at fault
Dieter
library(lattice)
dt = data.frame(x=rnorm(100),y=1:100,levs= as.factor(c("Gru","Gr?")))
2011 Jan 26
1
text labels in Trellis plot
Dear all,
I need to generate plots in which the points of the plot are replaced
by text labels, such as "dog" and "cat". The usual way of specifying
the plotting symbol with pch works only if the labels are single
characters, as far as I know. So,
plot(runif(3), pch=c("A", "B", "C"))
will work OK, but
plot(runif(3), pch=c("dog",