Displaying 20 results from an estimated 3000 matches similar to: "One main title and One legend for multiple lattice plots"
2010 Mar 18
2
multiple print commands in win.metafile()
Hi All,
I need a file which I can import to MS Word, I'm trying win.metafile(), but
it does not seem to support multiple print commands at once (please see
below). Is there an alternative to get plots file which can be used in
powerpoint/word?
# R code:
# this does not work; but same thing works with pdf()
library(lattice)
win.metafile("test.wmf")
p1 <- xyplot(decrease ~
2010 May 24
1
lattice 'scales' option help
Hi All,
I'm trying to draw boxplots. I'm having a hard time to get "ticks labels" on
multiple panels using 'alternating' option.
# R Code:
# May not be the best example, please just look into 'scales' option
library(lattice)
data(OrchardSprays)
dta <- subset(OrchardSprays, OrchardSprays$rowpos %in% c(1,2,3))
# Original
# This works fine, as you can see
2011 Sep 13
1
stupid lm() question
I feel bad even asking, but:
Rgames> data(OrchardSprays)
Rgames> model<-lm(decrease~.,data=OrchardSprays)
Rgames> model
Call:
lm(formula = decrease ~ ., data = OrchardSprays)
Coefficients:
(Intercept) rowpos colpos treatmentB treatmentC
22.705 -2.784 -1.234 3.000 20.625
treatmentD treatmentE treatmentF treatmentG treatmentH
2002 Aug 13
1
interaction.plot() legend too narrow when mfcol > 2 (PR#1899)
Here is an example:
The legends (mainly the factor level names) are cut off on the
right. Somehow the internal calculation which computes
horizontal space for the legend is not flexible enough.
## Call a new graphics window {with default par()s !}:
get(getOption("device"))()
par(mfrow = c(2,2))
## part of example(interaction.plot) _improved_ using with() :
data(OrchardSprays)
2013 May 03
1
print multiple plots to jpeg, one lattice and one ggplot2
hello everybody,
I want to print two plots in one png file, I tried several options but i
didn't succeed
the first plot (bwplot) print to the defined position, but the second
(ggplot) doesn't
Any idea?
Thanks a lot
Christophe
# Example:
#-------------------------------------
library(ggplot2)
library(lattice)
library(grid)
one <- bwplot(decrease ~ treatment, OrchardSprays, groups
2009 Apr 03
2
Titles on lattice colorkey
Dear R-ers,
I'm not sure if this is a missing feature, a support request, or stupidity on my part, but nevertheless, its a question. Is it possible to add titles to colorkey legends? As far as I can tell, there is a command to do it for normal "key" legends, but not for "colorkeys".
eg it works for a normal key, created through auto.key
xyplot(decrease ~ treatment,
2005 Aug 12
1
Problem with lme4
Hi,
I cannot seem to get lme4 to work. I have installed the lme4 and Matrix
package with apt-get. and both can be found in /usr/lib/R/site-library.
When I tried an example for lmer, R could not find the function lmer(),
> library(lme4)
Attaching package: 'lme4'
The following object(s) are masked from package:nlme :
getCovariateFormula getResponseFormula
2012 Oct 10
2
se's and CI's for fitted lines in multivariate regression analysis
I?m entirely stumped on this particular issue and really hoping someone has
some advice for me.
I am running a covariant model in lm I would like to give the standard
errors or the confidence intervals for the fitted lines. I?ve been using the
dataset OrangeSprays where I want lines for each level of treatment over the
covariant ?colpos?. I?ve been able to calculate intercepts and slopes for
2013 Feb 14
1
Alternate tick labels in xyplot
Dear Rhelp,
I would like to get alternate tick labels for the xyplot:
library(lattice)
library(grid)
xy <-xyplot(decrease ~ treatment, OrchardSprays,
??? main= "Some plot",
??????? groups = rowpos, type = "a",
??? ??????????? page???? = function(n){
???????????????????????? grid.text(LETTERS[j],
???????????????????????? y = 0.95,
???????????????????????? x = 0.15,
2004 Nov 28
1
Is this a bug in the parser? (PR#7395)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@r-project.org
#
######################################################
<<insert bug report here>>
Is this a bug in the parser?
Specifically, the trace
2008 Aug 07
1
stripchart ignores main title option (PR#12202)
Full_Name: James Curran
Version: 2.7.1
OS: Windows XP/Vista
Submission from: (NULL) (130.216.51.81)
stripchart ignores the main title option. For example, in the documentation
stripchart(decrease ~ treatment,
main = "stripchart(OrchardSprays)",
vertical = TRUE, log = "y", data = OrchardSprays)
does not yield a plot with
2010 Sep 25
1
margin control in lattice package
Hi all,
I am difficulty with simple layout of plots in the lattice package
I have created a series of levelplots and would like to plot them to a
single device, but need to reduce the margin areas. This is easily
accomplished with par(oma) and par(mar) in the base graphics package but I
am having problems finding the equivalent features in the lattice package.
Ideally, I would like to reduce
2000 Apr 28
1
graphics: par(mfg=c(i,j,r,c)) (PR#529)
Full_Name: Craig A. McKinstry
Version: 1.0.0
OS: WinNT4.0 and Win98
Submission from: (NULL) (192.101.100.130)
When creating a multi-panel graphic, the command par(mfg=c(i,j,r,c)) is
supposed
to allow the user free movement between graphics panels to develop each panel
separately. This works for the first invocation of par(mfg=c()) and for the
first panel panel specified, but not for subsequent
2009 Apr 17
0
Margins in lattice and device resolution
Hi all,
I believe I've run into this before, but I seem to have totally
forgotten. No headway in the last couple of hours either. How do I
make sure that points and margins remain the same absolute size as I
change
the resolution of a device?
(I'm running 2.9.1 patched, on a Win XP-machine)
Many thanks in advance,
Gustaf
Ps: As an afterthought, might it be that this behaviour is
2011 Sep 05
1
savePlot with % in character string
This occurred after I installed R x64 2.13.1 on Windows:
savePlot("95%.winners.wmf")
saves the file as:
"951nners.wmf"
Is this the correct behavior, or have I bungled something?
John Welsh, Ph.D.
Associate Professor
Molecular and Cancer Biology
Vaccine Research Institute of San Diego
10835 Road to the Cure
San Diego, CA 92121
Phone: (858) 581-3960 ex.248
Email: jwelsh at
2008 May 29
1
Help for R on Windows for non-Win-enabled!
Hi Folks,
I need help with a query about R on Windows, specifically
about graphics devices.
I'm advising someone remotely (so it's all by email) who
is running R on Windows, while I am not (Linux only).
Things have reached the stage where saving graphics plots
as Windows metafiles is looming.
I've been told that the result of "?device" in Windows is
as follows (which is
2009 Apr 24
1
How to custom the tick and type in bwplot
Dear R users
I use bwplot to plot some figures. There are two troubles:
1. How to change the dot of the mean to a line, like the style in boxplot
2. How to hide some tick marks. For example, I have seven tick: A, B, C, D,
E, F, G,
but I want show four marks: A, C, E, G on the x-axis.
Thanks!
--
Kind Regards,
Guanghong
[[alternative HTML version deleted]]
2005 Feb 15
1
lattice multiple plots per page
Dear R-sters,
I was wondering if anyone has encountered the following issues. I've
figured out how to get multiple levelplots [library(lattice)] on a single
plot. However, when I add text (adding axis labels for the entire four
panel plot) the text is missing when I insert the *.eps file I've created
into my LaTeX document (via MikTeX-WinEdt). And, I've just upgraded to R
2010 Aug 09
1
creating pdf of wireframe
Dear R list,
I have written some code to produce several wireframe plots in a panel. They
look good, but when I try to create a pdf, many (but not all) of the details
I have specified are not reproduced. For example, the line width I have
specified is not reproduced, and neither are the font sizes for the axis
labels. I'm an R novice, so I could really use some guidance.
Here is the code I am
2008 Jun 03
5
savePlot() no longer automatically adds an extension to the filename.
Plaintive squeak: Why the change?
Some OS's and desktops use the extension, so forgetting it causes
trouble. The new default filename keeps a filetype (as before) but the
user now has to type a filetype twice (once as the type, once as
extension) to get the same effect fo rtheir own filenames. And the
extension isn't then checked for consistency with valid file types, so
it can be