None of the people reading this at the moment can do this for you.
Read the information on the page where you subscribed.:
https://stat.ethz.ch/mailman/listinfo/r-help
Q: How many psychiatrists does it take to unscrew a light bulb?
A: Only one, but the lightbulb must truly want to become unscrewed.
--
David
On Dec 2, 2009, at 6:25 PM, Zack Chamsine wrote:
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 <pengcaimaill...@gmail.com> wrote:
From: Peng Cai <pengcaimaill...@gmail.com>
Subject: Re: [R] Help: barchart() {Lattice}
To: "Felix Andrews" <fe...@nfrac.org>
Cc: r-help@r-project.org
Received: Thursday, 3 December, 2009, 10:17 AM
Got it thanks, (relation="free" worked), more specifically
scales = list(relation="free", y = list(at = yScale))
On Wed, Dec 2, 2009 at 6:04 PM, Felix Andrews <fe...@nfrac.org> wrote:
2009/12/3 Peng Cai <pengcaimaill...@gmail.com>:
Hi Felix,
Thanks for your help. If I'm defining my own y-scales like the one
in R
code
below, then can I remove right side tick marks?
Yes. Look at the description of the "scales" argument in ?xyplot
dta<-read.table("data.txt", header=TRUE, row.names="Names")
library(lattice)
yScale <- seq(-200, 200, 10)
barchart(data.matrix(dta),
horizontal=FALSE,
stack=TRUE,
par.settings = simpleTheme(col = 3:5),
auto.key=list(space="right"),
border=NA,
scales = list(y = list(at = yScale))
)
Thanks,
Peng
On Wed, Dec 2, 2009 at 5:44 PM, Felix Andrews <fe...@nfrac.org>
wrote:
2009/12/3 Peng Cai <pengcaimaill...@gmail.com>:
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 = 3:5),
auto.key=list(space="right"),
border=NA
)
I need help with:
1. How can I remove the (y-axis) tick marks on the right side of
the
plot.
Since you only have one panel, try scales = "free"
2. While reading in the data, I'm using "row.names=Names". Can I
generalize
this? What I mean is if for some other data set, the row names
column
has some other name (say Names2) or may be just blank. Can I still
produce a
similar graph plotting row labels (in this case they are Row1,
Row2,
...) on
x-axis.
row.names can be a column number (1)
See ?read.table
It also describes the behaviour when the row names column is blank.
Any help would be appreciated,
Thanks,
Peng
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Felix Andrews / 安福立
Postdoctoral Fellow
Integrated Catchment Assessment and Management (iCAM) Centre
Fenner School of Environment and Society [Bldg 48a]
The Australian National University
Canberra ACT 0200 Australia
M: +61 410 400 963
T: + 61 2 6125 4670
E: felix.andr...@anu.edu.au
CRICOS Provider No. 00120C
--
http://www.neurofractal.org/felix/
--
Felix Andrews / 安福立
Postdoctoral Fellow
Integrated Catchment Assessment and Management (iCAM) Centre
Fenner School of Environment and Society [Bldg 48a]
The Australian National University
Canberra ACT 0200 Australia
M: +61 410 400 963
T: + 61 2 6125 4670
E: felix.andr...@anu.edu.au
CRICOS Provider No. 00120C
--
http://www.neurofractal.org/felix/
[[alternative HTML version deleted]]
-----Inline Attachment Follows-----
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
__________________________________________________________________________________
[[elided Yahoo spam]]
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.