Displaying 20 results from an estimated 10000 matches similar to: "change default alphabetic order for bwplot"
2009 Sep 30
1
bwplot scales in alphabetical order
Dear List,
I know this has been covered before, but I don't seem to be able to get it right. I am constructing a boxplot in lattice and can't get the scales in the correct alphebetical order. I have already read that this is due to the way factors are treated, and I have to redefine the levels of the factors. However, I have failed.
As a simple example:
library(lattice)
2013 Feb 22
1
locating boxplot in bwplot (lattice)
Hello
I am using lattice bwplot to draw migration distance of three groups of
birds.
The boxplots from the left to right is displayed
in alphabetic order of the boxplot names, as the default setting.
However, I would like the boxplots from the left to right to be displayed
according to the migration distance from the short values to the long ones.
In the data below, from the left to the
2010 May 12
3
Boxplot position on X-axis relative to it's value
Dear R-Experts.
I collected different datas about Nitrogen content (mg/ml) in Dung. The dung was eighter fresh (day=0) or had different ages (15,29,47) to observe nutrient changes over time.
Now I like to draw a boxplot.
boxplot(nmgml~day)
abline((nmgml~day)
The Problem is, that the boxplot considers the day values as groups and not as time series (neighter when the days are numeric or
2005 Jan 17
2
bwplot: how not to draw outliers
RenE J.V. Bertin wrote:
> Hello, and (somewhat belated) best wishes for 2005.
>
> Can one order not to draw outliers in bwplot, or at least exclude them from the vertical axis scaling? If so, how (or what doc do I need to consult)?
> The options that have this effect in boxplot() do not appear to have any effect with bwplot (although outline=FALSE in boxplot does *not* change the
2006 Feb 26
2
How to produce notches in bwplot?
Dear r-helpers,
tst <- data.frame(as.numeric(x <- 1:20), f <- rep(c('hi','lo'), times
= 10))
with(tst, bwplot(f ~ x, panel = function(x, y){panel.bwplot(x, y, pch
= '|', stats = boxplot.stats, fill = 8, varwidth = T)}))
I can't figure out from the documentation how to tell stats that I
would like to see notches or (even bands).
Here is what I've
2004 Mar 22
2
calling bwplot within a for loop
Hi,
I am working with R 1.81. When I call bwplot() it prints the output to the
windows device as it should. For example,
d<-data.frame(y=c(2,3,4,5,12,14,16,11),x=c(rep("group1",4),rep("group2",4)))
bwplot(y~x,data=d)
This code results in a parallel boxplot. That is a single plot with 2
boxplots next to each other; a boxplot for "group1" and a boxplot
2006 Jun 01
1
how to add point and label to boxplot using bwplot
Hi.
My data contains information for 10 hospitals for 12 different measures.
Let's call it x1-x12. I need to create a boxplot for each one of this
measures and put them into one page. Each plot also needs to be independent,
i.e. cannot use the group feature because of different scales for each
measure. I was successful using the following code:
x1 <- c(1.317604376, 0.978038233,
2013 Feb 19
2
introducing jitter in overlapping graphs using ggplots (plotmeans). Also sciplot.
Hi,
I want to plot means with standard deviations of Total Nitrogen (TN) across
4 stations (S1-S4) and over 3 years (2007-2009). I want this plot in one
panel.
I do not want medians (bwplot, boxplot).
I have tried a few different packages and it seems that ggplots with
plotmeans was the fastest (I am not extremely skilled in writing my own
scripts). Unfortunately, there is no grouping
2011 Feb 22
1
how can I connect paired points within lattice bwplot?
Hello all,
my first post to this list. I do a lot of experiments using a paired
sampling design and I would get a lot of mileage out of figures like
this, if I can make it work! Any advice would be appreciated.
my email is: cory.champagn at gmail.com.
Thanks!
#define dummy variables and a dataframe:
y1 <- c(1:20)
x1 <-
2011 Jun 26
1
bwplot questions: box order, axis breaks, and multiple y-axis labels
Hi all,
I used bwplot in lattice to create a 6-panel boxplot grouped by a
conditioning variable (param) that displays concentration (conc) in
response to treatment (trtmnt). Here is the functional part of my
code followed by my three questions:
library(lattice);
ww<-read.csv(file="c:/Rdata/lattice_boxplot_prep.csv",header=TRUE,sep=",");
attach(ww);
2008 May 05
2
bwplot
Hi,
I have 2 questions about bwplot in R :
1) How to change the order of my different boxes in the graph ?
2) How to rename the names of the differents boxes ? because I know
how to do that with boxplot (using names) but I do not find the
equivalent parameter in bwplot.
thanks,
C?dric
2005 Mar 23
2
alternative to 'groups' for lattice bwplot()
Hi,
Is there some alternative to the 'groups' argument in lattice's bwplot
function for boxplots? Say in the example below:
bwplot(yield ~ site | year, data = barley)
you want to have two side by side boxplots per site, corresponding to each
year in the barley data frame. Ideally, the space between boxplots of the
same site should be smaller than that between boxplots of different
2010 Oct 11
1
Lattice::bwplot unexpected behaviour when using vector of colors
Hi,
I'm trying to produce colored boxplots using lattice::bwplot function. I need to plot each boxplot in the panel with a specific color. Naturally I used a vector of colors and expected to see colored boxplots. Although the boxplots were colored, the color of whiskers and the boxes do not match. Here is an example:
d = data.frame(y = rnorm(100), x=1:4)
box.color <-
2010 Oct 11
1
Lattice::bwplot unexpected behaviour when using vector of colors
Hi,
I'm trying to produce colored boxplots using lattice::bwplot function. I need to plot each boxplot in the panel with a specific color. Naturally I used a vector of colors and expected to see colored boxplots. Although the boxplots were colored, the color of whiskers and the boxes do not match. Here is an example:
d = data.frame(y = rnorm(100), x=1:4)
box.color <-
2005 Mar 11
2
Lattice bwplot error
Dear all;
Searching the R site for answers to my problem, but found none.
Here is the run and error:
> bwplot(dev ~ Dbhcl | Period, data = DbhValid2, font = 2,
+ main=list(" "), axis.font =2,
+ ylab = list(label = "Residual (cm)", font = 2),
+ xlab = list(label = "Dbh class (cm)", font = 2),
+ par.strip.text=list(cex=0.8, font=2),
+ panel=function(x,
2005 Feb 11
1
label outliers in boxplot and/or bwplot
Hi
Is there a way to lable (e.g. observation-number) the outliers in a boxplot?
and in a bwplot?
thanks a lot
Christoph
P.S. identify() is not available with bwplot, is it?
2007 Jul 04
1
retrieving stats from bwplot
Hi all,
I want to retrieve the stats from a 'bwplot' with one factor. I have read the help for 'panel'
function and I'm aware of the option 'stats' which defaults to 'boxplot.stats' but I didn't
understand it well and therefore I am unable to get what I need.
Thanks in advance.
Héctor Villalobos
Windows XP, R 2.5.0
> bwplot(decrease ~ colpos |
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
2010 Oct 13
1
bwplot change whiskers position to percentile 5 and P95
Dear R-community,
Using bwplot, how can I put the whiskers at percentile 5 and percentile 95,
in place of the default position coef=1.5??
Using panel=panel.bwstrip, whiskerpos=0.05, from the package agsemisc gives
satisfaction, but changes the appearance of my boxplot and works with an old
version of R, what I don’t want, and I didn’t find the option in
box.umbrella parameters
Many thanks
2008 Jul 31
1
bwplot with Date object
Hello R-helpers,
I would like to produce a boxplot for dates, using lattice.
Here is a dummy example :
dates<-as.Date(32768:32895,origin="1900-01-01")
plouf<-data.frame(days=dates,group=factor(rep(1:2,times=128/2)))
bwplot(group~days,data=plouf)
# doesn't work, whereas :
bwplot(group~as.numeric(days),data=plouf)
# does, but is obviously not good looking when it comes to