Dear all,
Is there a possibility to remove the panel (with names) from a lattice plot?
Thank you very much for your help!
---
Catalin-Constantin ROIBU
Lecturer PhD, Forestry engineer
Forestry Faculty of Suceava
Str. Universitatii no. 13, Suceava, 720229, Romania
office phone +4 0230 52 29 78, ext. 531
mobile phone +4 0745 53 18 01
+4 0766 71 76 58
FAX: +4 0230 52 16 64
silvic.usv.ro
[[alternative HTML version deleted]]
I am not sure what you mean by "remove" (reproducible example??, code??) but see the "skip" argument of xyplot, which says: skip: A logical vector (default FALSE), replicated to be as long as the number of panels (spanning all pages). For elements that are TRUE, the corresponding panel position is skipped; i.e., nothing is plotted in that position. The panel that was supposed to be drawn there is now drawn in the next available panel position, and the positions of all the subsequent panels are bumped up accordingly. This may be useful for arranging plots in an informative manner. Presumably you can omit data that you don't wish to be plotted via the "subset" argument, or changing it to NA, or removing it from your data. If your issue is getting rid of unwanted empty factor levels, that can be done by the "drop.unused.levels" argument. If I haven't guessed what you mean, either explain more clearly or hope that someone else does. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." H. Gilbert Welch On Wed, Mar 5, 2014 at 1:11 PM, catalin roibu <catalinroibu at gmail.com> wrote:> Dear all, > > Is there a possibility to remove the panel (with names) from a lattice plot? > > Thank you very much for your help! > > --- > Catalin-Constantin ROIBU > Lecturer PhD, Forestry engineer > Forestry Faculty of Suceava > Str. Universitatii no. 13, Suceava, 720229, Romania > office phone +4 0230 52 29 78, ext. 531 > mobile phone +4 0745 53 18 01 > +4 0766 71 76 58 > FAX: +4 0230 52 16 64 > silvic.usv.ro > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.
Hi
If you want to remove a panel with no plots in it see
?lattice::xyplot
and look for drop.unused.levels
If you want to remove a factor that has plot values in it then the easiest
way may be to create a column of the factor and NA the values of the panel,
relevel the factor and use the column instead
Otherwise an example via dput would be needed for further help
Duncan
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-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On
Behalf Of catalin roibu
Sent: Thursday, 6 March 2014 07:11
To: r-help at r-project.org
Subject: [R] Remove lattice panel
Dear all,
Is there a possibility to remove the panel (with names) from a lattice plot?
Thank you very much for your help!
---
Catalin-Constantin ROIBU
Lecturer PhD, Forestry engineer
Forestry Faculty of Suceava
Str. Universitatii no. 13, Suceava, 720229, Romania
office phone +4 0230 52 29 78, ext. 531
mobile phone +4 0745 53 18 01
+4 0766 71 76 58
FAX: +4 0230 52 16 64
silvic.usv.ro
[[alternative HTML version deleted]]
______________________________________________
R-help at 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.