Displaying 12 results from an estimated 12 matches for "pengcaimaillist".
2009 Dec 02
1
Fw: Re: Help: barchart() {Lattice}
I HAVE BEEN ASKED TO BE REMOVED FROM THIS LIST OVER 20 TIMES, PLEASE CAN I BE REMOVED!!!!!!!!!!!!!
--- On Thu, 3/12/09, Peng Cai <pengcaimaillist@gmail.com> wrote:
From: Peng Cai <pengcaimaillist@gmail.com>
Subject: Re: [R] Help: barchart() {Lattice}
To: "Felix Andrews" <felix@nfrac.org>
Cc: r-help@r-project.org
Received: Thursday, 3 December, 2009, 10:17 AM
Got it thanks, (relation="free" worked), more s...
2009 Dec 09
1
Greek symbols on "ylab=" using barchart() {Lattice}
Hi All,
I'm trying to write "ug/m3" as y-label, with greek letter "mu" replacing "u"
AND "3" going as a power.
These commands works in general:
plot.new()
text(0.5, 0.5, expression(symbol("m")))
But, I'm sure about how to do it using barchart() from "Lattice". Can anyone
help please?
Thanks,
Peng Cai
[[alternative HTML
2010 Feb 12
2
expression() help
Hi All,
I'm trying to use expression() for y-label in plot(). I'm not able to write
Average(space)PM(subscript)10. I'm trying:
ylab=expression(Average PM[10])
and its not working, because of a space between "Average" and "PM". Thanks,
Peng
[[alternative HTML version deleted]]
2010 Feb 26
1
bwplot() {lattice}
Hi All,
I'm trying to plot boxplot graph. I tried barchart with "groups=" option and
it worked fine. But when I try to generate same kind of graph using
bwplot(), "groups=" option doesn't seem to work. Though this works,
yield ~ variety | site * year
I'm thinking why "groups=" doesn't work in this case, can anyone help
please...
#Code:
2010 Mar 18
2
greek symbols on ylab=
Hi All,
I'm trying to get following but not successfully:
# this works okay
ylab=expression("PM2.5 Concentration ("*mu*g/m^3*")")
# But I need "2.5" as a subscript to PM and below this an additional line
saying some text, like.
ylab=expression("PM[2.5] Concentration ("*mu*g/m^3*")"\n(random text in
brackets))
Square brackets doesn't
2009 Nov 26
1
{ggplot2} Adding Mean to (grouped) Boxplot.
Hi R Users,
I am using following R code to plot a "grouped boxplot". I'm hoping if I can
add MEAN to these boxplots. Data is copied below and attached as text file.
install.packages("ggplot2")
library(ggplot2)
dta<-read.table("Sample.txt",header=T)
attach(dta)
p <- ggplot(dta, aes(factor(month), nail))
p + geom_boxplot(aes(fill = factor(trt)))
Data:
month
2009 Dec 02
2
Help: barchart() {Lattice}
Hi R Users,
I'm using following data/code (data is attached also) to produce a stacked
barplot.
# Sample Data:
Names Col1 Col2 Col3
Row1 -20 40 -10
Row2 30 -20 40
Row3 30 10 -20
Row4 20 20 -10
# R Code:
dta<-read.table("data.txt", header=TRUE, row.names="Names")
barchart(data.matrix(dta),
horizontal=FALSE,
stack=TRUE,
par.settings = simpleTheme(col =
2009 Nov 26
3
barchart() {Lattice} help.
Hi R Users,
I'm trying to plot a stacked barplot. Here is data:
Sample Col1 Col2 Col3
Row1 -2 4 -1
Row2 3 -2 4
Row3 3 5 -2
Row4 4 1 -1
I'm using following R code:
library(lattice)
dta<-read.table("data.txt", header=TRUE, row.names="Sample")
barchart(data.matrix(dta),
horizontal=FALSE,
stack=TRUE,
col=2:4,
2009 Dec 03
4
Two-way/Three-way sum.
Hi R Users,
I'm wondering how can I calculate two (or three) way sum of a variable. A
sample data is:
State Month Year Value
NC Jan 1996 1
NC Jan 1996 2
NC Feb 1997 2
NC Feb 1997 3
NC Mar 1998 3
NC Mar 1998 4
NY Jan 1996 4
NY Jan 1996 5
NY Feb 1997 5
NY Feb 1997 6
NY Mar 1998 6
NY Mar 1998 7
I'm trying to sum up "value" column by State*Month and by State*Month*Year.
Also, I
2009 Dec 19
2
Lattice boxplots
Hi All,
I'm familiar with bwplot() in lattice package. Is it possible to get such a
boxplot using lattice package:
http://www.reading.ac.uk/ssc/publications/graphics/mma-fig1.gif
instead of the following default:
http://media.wiley.com/wires/WICS/WICS22/mfig005.gif
My aim is to get a compact boxplot for publication. Having legend can help
because otherwise x-axis labels are repeated for
2010 Mar 17
2
Adding text outside (lattice barchart) plotting region.
Hi All,
I need some help with adding text at the bottom of the graph (outside of
default outline of graph).
Say, I need to write "Month: 01 04" below each of the two years in the
following R code, something like this:
_______________
| |
| Plot |
|___ __________|
1931 1932
2009 Dec 02
1
barchart() {Lattice} -- auto.key()
Hi R Users,
I'm using following data/code (data is also attached) to produce a stacked
barplot.
*I need help with changing legend boxes, currently I'm using
"rectangles=TRUE". Is it possible to get small squares instead -- may be
with a small gap between colored squares.* Currently there is no gap between
the colored rectangles.
# Sample Data:
Names Col1 Col2 Col3
Row1 -20 40