Displaying 20 results from an estimated 6000 matches similar to: "bwplot panels like stripplot"
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 <-
2004 Sep 09
2
Skipping panels in Lattice
Dear all,
I wish to generate a lattice boxplot which skips an empty cell in a design.
I have trawled r-help, scruitinized xyplot(lattice) help page, and merrily
reproduced examples of using skip from a couple of previous r-help queries
and the example given in Pinheiro & Bates. But I must be missing something...
Here's an example (running R 1.9.1 on Win2k):
# generate some data
df1
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 <-
2004 Jul 09
3
Problem with bwplot
Try factor(vec2) in your bwplot() call.
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Ernesto Jardim
Sent: Friday, July 09, 2004 9:41 AM
To: Mailing List R
Subject: [R] Problem with bwplot
Hi,
I'm ploting some box-and-whisker plots with bwplot but I'm not getting
any box-and-whiskers ... just dots.
2002 Mar 27
2
Vertical bars with barchart()
I would like to create a barchart that has vertical instead of horizontal
bars. My goal is something similar to Figure 6.10 (p. 166) in
"The Basics of S and S-plus," except for the orientation of the bars.
I don't think bwplot() or xyplot() will work. Any suggestions?
Scott Waichler
Hydrology Group/Environmental Technology Division
Battelle Pacific Northwest National Laboratory
2004 Jan 02
1
bwplot and panel.bwplot
Hello,
I am trying to use "bwplot" to display whisker boxes according to some conditioning factors ("age" has two values 1/2). I get the following messages:
> library(trellis)
> bwplot(dvk95~age|site*season,panel=function(x,y){panel.bwplot(x,y)})
Error in tapply(1:0, structure(list(INDICES = numeric(0)), .Names = "INDICES"), :
arguments must have
2012 Sep 06
2
Lattice bwplot(): Changing Orientation of Plots in Multipanel Display
I've looked again at Deepayan Sakar's 'Lattice' book and not seeing the
information I know must be in there. A clue stick would be much appreciated.
A pair of box-and-whisker plots for two conditions of the same data set
display each box plot horizontally (see attached pH figure). Relations of
the two are not as easily seen as they would be if the two panels had the
plots
2010 Nov 02
1
Colour filling in panel.bwplot from lattice
Inspired by colouring the dots of box-whisker plots I am trying to also
fill the boxes (rectangles) with different colours. This seems not to
work as I expected.
Looking at the help page of panel.bwplot it says: 'fill - color to fill
the boxplot'. Obviously it is only intended to fill all boxes with only
one colour?
Nevertheless the following example shows, that 'fill' from
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
2010 Sep 20
1
Adjusting Font Size: lattice / bwplot
Hello,
If you run the following code with lattice installed:
bwplot(voice.part ~ height, data=singer, xlab="Height (inches)")
There will be some text in the graph e.g. Soprano 1, Soprano 2, etc -
60, 65, etc and the title: Height (Inches). How can one make the font
for this text larger and/or bold? Also, is there a way to thicken or
bold the lines of the box and whisker plot?
Thank
2012 Jul 22
1
Lattice/"panel.bwplot" and Gviz: Boxplot question
Hi,
I was using Gviz package to create a boxplot. I understand that Gviz uses
"panel.bwplot" to create the boxplot.
Is there any way that I can remove the dashed line surrounding each pair of
boxplots?
Here is some sample code:
#############
library(Gviz)
thisdata <- matrix(sample(1:100,60),nrow=10,ncol=6)
positions <- sample(1:100,6)
limit1 <- min(positions)-1
limit2
2005 Jun 14
2
lattice, panel.grid, and scales=list(tick.number=XXX)
I have a Lattice plot in which I want to adjust the number of tick
marks used, and I want to have the drawn grid reflect that change.
Here is what I'm doing:
bwplot(var1 ~ var2, data=df, scales=list(tick.number=10),
panel=function(...) {
panel.grid(h=0,v=-1,...);
panel.stripplot(col="gray40", pch="|", cex=2, ...);
panel.bwplot(...);
})
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
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
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
2010 Apr 28
1
bwplot - scattered
Hi,
I'm using the bwplot from the agsemisc package which has a scattered
attribute which can be set so that the single dots can bee seen better.
my problem is, that I am having so many dots that they still overlap.
I could increase the output of the diagram but thats not really my
intention.
has someone an idea on how to have a stronger jitter?
--
View this message in context:
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
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 17
2
lattice: bwplot and panel.lmline()
On Friday 17 September 2004 13:52, RenE J.V. Bertin wrote:
> Hello again,
>
> I am doing regressions (using panel.lmline() (and panel.abline(
> rlm(...))) ) inside a panel method which I pass to bwplot().
>
> What I would like to do is create a boxplot of categorised data
> (binned on the independent variable), and superpose a regression line
> which is calculated using the
2008 May 06
2
Lattice problems / cannot load lattice
Hi,
My problem is simple: since having updated the lattice package, I cannot
load lattice anymore. If I type in the command 'library(lattice)' the
loading fails with the following message:
--- cut here ---
Error in library.dynam(lib, package, package.lib) :
shared library 'lattice' not found
In addition: Warning messages:
1: In loadNamespace(package, c(which.lib.loc,