Thank you Duncan,
I am new to R. Could you please tell me how to download the latticeExtra
package to get stationx time conditioning? I am terribly sorry that I have read
3-4 R books for dummies but I am still quite helpless with using R. >_<
Regards,
Christine
--------------------------------------------
2015?4?7? ????Duncan Mackay <dulcalma at bigpond.com> ???
??: RE: [R] strip levels
???: "R" <r-help at r-project.org>, "'Christine
Lee'"
??: 2015?4?7?,???,??8:57
Hi
also have a look at useOuterStrips in the
latticeExtra package if you want
station x
time conditioning
useOuterStrips(strip? ? ? strip.custom(par.strip.text = list(cex = 0.75)),
? ? ? ? ? ? ???strip.left strip.custom(horizontal = FALSE,
? ? ? ?
? ? ? ? ? ? ? ? ? ? par.strip.text = list(cex 0.75)),
useOuterStrips(strip? ? ? strip.custom(factor.levels = ... ,
? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
???par.strip.text = list(cex = 0.75)),
? ? ? ? ? ? ???strip.left strip.custom(factor.levels =? ...,
? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
???horizontal = FALSE,
? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
???par.strip.text = par.strip.text list(cex = 0.75)),
histogram(...)
) ##
useOuterStrips
... = your
code
Regards
Duncan Mackay
Department of Agronomy and
Soil Science
University of New England
Armidale NSW 2351
Email: home:
mackay at northnet.com.au
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org]
On Behalf Of Christine
Lee via R-help
Sent: Monday, 6 April 2015 21:44
To: r-help at r-project.org
Subject: [R] strip levels
To whom it may help,
I am new to R.
I have been tring to have a lattice plot in two
strip levels: 4 stations in
2 years.?
I type in:
histogram(~Raw.no10$Width|Raw.no10$Station*Raw.no10$Year,
data=Raw.no10,
layout=c(4,2),nin=30,xlab="Prosomal Width
(mm)",
strip=strip.custom(bg='white'),ylab="Frequencies",tick=-1,col='grey',as.tabl
e=TRUE)
The
second level, i.e. Year, showed as "Raw.no10$Year"
in the each of the
lattice plot, instead of
its respective year, such as "2002" and
"2014".
I changed
to the following programme language, therefore:
histogram(~Raw.no10$Width|Raw.no10$Station*Raw.no10$Year,
data=Raw.no10,
layout=c(4,2),nin=30,xlab="Prosomal Width
(mm)",
strip=strip.custom(bg='white',var.name=c("2002","2014")),ylab="Frequencies",
tick=-1,col='grey',as.table=TRUE)
in order to specify the
variable names of the strip.
Instead of showing "Raw.no10$Year",
[[elided Yahoo spam]]
They should have 4 plots showing
"2002" and another 4 showing "2014".
Could any one help indicating
what has gone wrong?
I am
really helpless and frustrated now.? T_T
Regards,
Christine
______________________________________________
R-help at r-project.org
mailing list -- To UNSUBSCRIBE and more, see
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.
On Apr 6, 2015, at 9:38 PM, Christine Lee via R-help wrote:> Thank you Duncan, > > I am new to R. Could you please tell me how to download the latticeExtra package to get stationx time conditioning? I am terribly sorry that I have read 3-4 R books for dummies but I am still quite helpless with using R. >_< >These books didn't illustrate acquiring packages? Read: ?install.packages Also read the posting guide where it is suggested that you describe your setup: R version, operating system, etc. -- David.> Regards, > Christine > > > -------------------------------------------- > 2015?4?7? ????Duncan Mackay <dulcalma at bigpond.com> ??? > > ??: RE: [R] strip levels > ???: "R" <r-help at r-project.org>, "'Christine Lee'" > ??: 2015?4?7?,???,??8:57 > > Hi > > also have a look at useOuterStrips in the > latticeExtra package if you want > station x > time conditioning > > useOuterStrips(strip > strip.custom(par.strip.text = list(cex = 0.75)), > strip.left > strip.custom(horizontal = FALSE, > > par.strip.text = list(cex > 0.75)), > useOuterStrips(strip > strip.custom(factor.levels = ... , > > > par.strip.text = list(cex = 0.75)), > strip.left > strip.custom(factor.levels = ..., > > > horizontal = FALSE, > > > par.strip.text = par.strip.text > list(cex = 0.75)), > histogram(...) > ) ## > useOuterStrips > > ... = your > code > > Regards > > Duncan Mackay > > Department of Agronomy and > Soil Science > University of New England > Armidale NSW 2351 > Email: home: > mackay at northnet.com.au > > -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] > On Behalf Of Christine > Lee via R-help > Sent: Monday, 6 April 2015 21:44 > To: r-help at r-project.org > Subject: [R] strip levels > > To whom it may help, > > I am new to R. > > I have been tring to have a lattice plot in two > strip levels: 4 stations in > 2 years. > > I type in: > > histogram(~Raw.no10$Width|Raw.no10$Station*Raw.no10$Year, > data=Raw.no10, > layout=c(4,2),nin=30,xlab="Prosomal Width > (mm)", > strip=strip.custom(bg='white'),ylab="Frequencies",tick=-1,col='grey',as.tabl > e=TRUE) > > The > second level, i.e. Year, showed as "Raw.no10$Year" > in the each of the > lattice plot, instead of > its respective year, such as "2002" and > "2014". > > I changed > to the following programme language, therefore: > > histogram(~Raw.no10$Width|Raw.no10$Station*Raw.no10$Year, > data=Raw.no10, > layout=c(4,2),nin=30,xlab="Prosomal Width > (mm)", > strip=strip.custom(bg='white',var.name=c("2002","2014")),ylab="Frequencies", > tick=-1,col='grey',as.table=TRUE) > > in order to specify the > variable names of the strip. > > Instead of showing "Raw.no10$Year", > [[elided Yahoo spam]] > They should have 4 plots showing > "2002" and another 4 showing "2014". > > Could any one help indicating > what has gone wrong? > > I am > really helpless and frustrated now. T_T > > Regards, > Christine > > ______________________________________________ > R-help at r-project.org > mailing list -- To UNSUBSCRIBE and more, see > 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. > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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 Alameda, CA, USA
Hi Chistine, The latticeExtra package should be included with your installation of R. Enter: library(latticeExtra) in your R session to make it available. Jim On Tue, Apr 7, 2015 at 4:28 PM, David Winsemius <dwinsemius at comcast.net> wrote:> > On Apr 6, 2015, at 9:38 PM, Christine Lee via R-help wrote: > > > Thank you Duncan, > > > > I am new to R. Could you please tell me how to download the > latticeExtra package to get stationx time conditioning? I am terribly > sorry that I have read 3-4 R books for dummies but I am still quite > helpless with using R. >_< > > > > These books didn't illustrate acquiring packages? > > Read: > > ?install.packages > > Also read the posting guide where it is suggested that you describe your > setup: R version, operating system, etc. > > -- > David. > > Regards, > > Christine > > > > > > -------------------------------------------- > > 2015?4?7? ????Duncan Mackay <dulcalma at bigpond.com> ??? > > > > ??: RE: [R] strip levels > > ???: "R" <r-help at r-project.org>, "'Christine Lee'" > > ??: 2015?4?7?,???,??8:57 > > > > Hi > > > > also have a look at useOuterStrips in the > > latticeExtra package if you want > > station x > > time conditioning > > > > useOuterStrips(strip > > strip.custom(par.strip.text = list(cex = 0.75)), > > strip.left > > strip.custom(horizontal = FALSE, > > > > par.strip.text = list(cex > > 0.75)), > > useOuterStrips(strip > > strip.custom(factor.levels = ... , > > > > > > par.strip.text = list(cex = 0.75)), > > strip.left > > strip.custom(factor.levels = ..., > > > > > > horizontal = FALSE, > > > > > > par.strip.text = par.strip.text > > list(cex = 0.75)), > > histogram(...) > > ) ## > > useOuterStrips > > > > ... = your > > code > > > > Regards > > > > Duncan Mackay > > > > Department of Agronomy and > > Soil Science > > University of New England > > Armidale NSW 2351 > > Email: home: > > mackay at northnet.com.au > > > > -----Original Message----- > > From: R-help [mailto:r-help-bounces at r-project.org] > > On Behalf Of Christine > > Lee via R-help > > Sent: Monday, 6 April 2015 21:44 > > To: r-help at r-project.org > > Subject: [R] strip levels > > > > To whom it may help, > > > > I am new to R. > > > > I have been tring to have a lattice plot in two > > strip levels: 4 stations in > > 2 years. > > > > I type in: > > > > histogram(~Raw.no10$Width|Raw.no10$Station*Raw.no10$Year, > > data=Raw.no10, > > layout=c(4,2),nin=30,xlab="Prosomal Width > > (mm)", > > > strip=strip.custom(bg='white'),ylab="Frequencies",tick=-1,col='grey',as.tabl > > e=TRUE) > > > > The > > second level, i.e. Year, showed as "Raw.no10$Year" > > in the each of the > > lattice plot, instead of > > its respective year, such as "2002" and > > "2014". > > > > I changed > > to the following programme language, therefore: > > > > histogram(~Raw.no10$Width|Raw.no10$Station*Raw.no10$Year, > > data=Raw.no10, > > layout=c(4,2),nin=30,xlab="Prosomal Width > > (mm)", > > strip=strip.custom(bg='white',var.name > =c("2002","2014")),ylab="Frequencies", > > tick=-1,col='grey',as.table=TRUE) > > > > in order to specify the > > variable names of the strip. > > > > Instead of showing "Raw.no10$Year", > > [[elided Yahoo spam]] > > They should have 4 plots showing > > "2002" and another 4 showing "2014". > > > > Could any one help indicating > > what has gone wrong? > > > > I am > > really helpless and frustrated now. T_T > > > > Regards, > > Christine > > > > ______________________________________________ > > R-help at r-project.org > > mailing list -- To UNSUBSCRIBE and more, see > > 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. > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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 > Alameda, CA, USA > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >[[alternative HTML version deleted]]