similar to: Text Outside Lattice Plot

Displaying 20 results from an estimated 2000 matches similar to: "Text Outside Lattice Plot"

2010 Mar 19
1
One main title and One legend for multiple lattice plots
Hi All, Can anyone please help me with getting a "single title" and "legend" for both the plots in the following R code. I'll eventually be using .wmf file. # R code: library(lattice) p1 <- xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos, type = "a", main="Same title / legend", auto.key = list(space = "right",
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
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
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
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 ~
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 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
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,
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,
2013 Jul 30
2
Xyplot
Estimados, tengo una consulta acerca de gráficas con xyplot. Tengo una base de datos con dos perfiles de concentracion por sujeto, ya que a cada sujeto se le administraron dos formulaciones. Con la función xyplot he podido graficar cada perfil separando sujetos y formulaciones: pl <- xyplot (DV~TIME | factor(ID)+factor(FORM), data=tab, type = 'l',
2009 Apr 25
4
dotplot: labeling coordinates for each point
Hi all, I used dotplot to draw a graph for a dataset with size of 100. Since the x-axis are all texts, so they are mixed up and not readable. Is there any way to make it readable or how can I add labels to all the points with its (x,y) coordinates? Thanks for your help. Best, Tony [[alternative HTML version deleted]]
2009 Feb 24
4
Help with Latex (Hmisc)
Dear R Users, I have three questions. 1) Is there a way to get the output tex file to include \documentclass{report} \begin{document} and \end{document} so I can generate a PDF straight away. (I am trying to generate hundreds of these and don't want to have to manually type this in every time I load a tex file). 2) When I have have a table of greater than 9 columns, the columns to
2009 Mar 29
1
Two variables on one lattice barchart
Hi, I created the barchart below using the lattice package, however I can't seem to find a way to add another variable as a line (see the desired square/lines that I drew for the last 10 years of the plot). Can anyone help me with this? Your help is much appreciated! Code: Schart<-barchart(Catch~Year,data=SNA, scales=list(col = "black", tck = c(1, 0),x=list(rot=45)))
2005 Mar 15
1
How do I call a masked function in a package without a namespace?
Hello, I work with two packages sna and graph from CRAN resp. Bioconductor. Both packages have a function called "degree". Therefore one of the functions is masked by the other and which one gets called depends on the order of loading. The problem is that both package do not have a namespace, therefore calling the masked function with "package::degree" does not work.
2007 Nov 10
1
about R sna package source code
Is anyone know some thing about sna package source code?? I have a question about sna source code, I need some functions in R sna package, so I check the source code. There is a function called efficiency in sna package, but I didn't find the any code about "efficiency", anyone know it? thank you [[alternative HTML version deleted]]
2009 Jul 14
1
Error installing package sna
Dear R-users, These days, I have been struggling to install the package sna on my Ubuntu 8.04 laptop. My R version is currently R 2.7.2. And I had no trouble installing any other packages (including network). However when I run 'install.packages("sna")', compilation of C codes is ok, but a syntax error is reported when building help pages and sna does not want to install. I
2015 Feb 24
3
alternatives to do.call() when namespace is attached but not loaded?
Dear R-devel I have a function in a package that essentially provides a wrapper for a group of functions in another Suggested package (it sets appropriate defaults for the context, transforms output, etc). I've implemented this by verifying that the package was loaded with require(sna) and then do.call(snaFunName, args = args) The rDevel check is requesting that I use
2006 Mar 26
2
range and bwplot
Hi, is there an equivalent to the 'range' option of the boxplot function to be found in the bwplot function of the trellis package? regards Vincent [[alternative HTML version deleted]]