Displaying 20 results from an estimated 9000 matches similar to: "Numeric data calculated in bwplot"
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
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
2004 Nov 06
1
basic bwplot query
Hi -
I have some data consisting of a number of observations within each of
15 countries. Each country falls into one of two groups. I'd like to
use the lattice library's bwplot to present boxplots of the
country-level data, with a separate panel for each group, but showing
only the relevant countries in each panel. Here's an analogous example
using the "singer" data
2012 May 03
1
bwplot: using a numeric variable to position boxplots
[Env: R 2.14.2 / Win Xp]
In the examples below, I'm using lattice::bwplot to plot boxplots of 4
variables, grouped by a factor 'epoch'
which also corresponds to a numeric year. I'd like to modify the plots
to position the boxplots according to
the numeric value of year, but I can't figure out how to do this.
Also, I'd to modify the strip labels that give the variable
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
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
2003 Mar 02
2
bug in bwplot (PR#2595)
> tmp <- data.frame(y=rnorm(12), g=factor(rep(1:2,6)))
> bwplot(g ~ y, data=tmp)
Error in segments(x1 = structure(c(-1.68373790592731, 0.159038997376781, :
Argument "x0" is missing, with no default
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 1
2004 Nov 20
1
how to suppress whiskers in a bwplot?
dear R-help,
i have looked carefully through the R-help archives for information on how
to suppress whiskers in a bwplot. someone asked this question a while
ago, but the answer he received is not available in the archives.
but i did manage to get my hands on a panel function (called
"my.panel") that is supposed to do this (the function is reproduced at the
end of the email, below).
2011 Mar 24
1
Colour makes my life; but not my bwplot (panel.violin)
Using Trellis, am successfully setting up a number of panels (25) in which I
have two box and violin plots.
I would like to colour - one plot as RED and the other as BLUE (in each
panel). I can do that with the box plots, but the violin density areas just
take on one colour.
My basic call is as follows:
bwplot(rmsd ~ file | code,
data=spread_data.filtered,
panel = function(...,
2006 Mar 14
2
bwplot and outlier symbols
Hi,
I was just trying to figure out how to beautify the output of my
bwplot-output. Altogether I figured most of the things out on my own. The
one thing which puzzles me though are the symbols for the outliers.
I can easily change the form of the median symbol by using "pch" but I
don't know how to do this for outliers. Obviously the "outpch" of the
2007 Aug 16
1
to combine bwplot + srt option?
Hi R-users,
Could someone help me to combine bwplot and srt option (exemple srt = 45
degree or srt 90 degree)? My graphic contains 146 boxplots, I would like
to label all of them. As you know, labels are not readable.
Thank you for your help in advance!
Lassana KOITA
Chargé d'Etudes de Sécurité Aéroportuaire et d'Analyse Statistique /
Project Engineer Airport Safety Studies &
2008 Mar 07
5
Passing function to tapply as a string
Hi,
Was wondering if it is possible to pass function name as a parameter, smth
along this line
param.to.pass<-c(1,'max','h')
dd<-function(dfd, param=param.to.pass,...){
ttime.int <- format(ttime,fmt)
data.frame(
param[3] = tapply(dfd[,param[1]],ttime.int,param[3]),
...)
}
I know there is a as.formula expression but not quite sure if there is some
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
2006 Feb 06
2
turn off selected axes in bwplot
I want to turn off selected axes in bwplot. I would like to only have the bottom axis drawn, with the others off.
I have a series of bwplots that I want on one device, like this:
p1<-bwplot(x1,box.ratio=.1)
p2<-bwplot(x2,box.ratio=.1)
...
print(p1,position=c(0,.8,1,1),more=T)
print(p2,position=c(0,.6,1,.8),more=T)
...
I know about the panel functions panel.bwplot() and panel.axis(), but
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 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.
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 <-
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
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