Displaying 20 results from an estimated 700 matches similar to: "se's and CI's for fitted lines in multivariate regression analysis"
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
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
2007 Jul 04
1
retrieving stats from bwplot
Hi all,
I want to retrieve the stats from a 'bwplot' with one factor. I have read the help for 'panel'
function and I'm aware of the option 'stats' which defaults to 'boxplot.stats' but I didn't
understand it well and therefore I am unable to get what I need.
Thanks in advance.
Héctor Villalobos
Windows XP, R 2.5.0
> bwplot(decrease ~ colpos |
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 Jan 26
1
boxplot - code for labeling outliers - any suggestions for improvements?
Hello all,
I wrote a small function to add labels for outliers in a boxplot.
This function will only work on a simple boxplot/formula command (e.g:
something like boxplot(y~x)).
Code + example follows in this e-mail.
I'd be happy for any suggestions on how to improve this code, for example:
- Handle boxplot.matrix (which shouldn't be too hard to do)
- Handle cases of complex
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]]
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 Jan 21
1
Text Outside Lattice Plot
Dear R users
I created the graph at the bottom using xyplot in the lattice package. I
added a title using the main="Title" command in xyplot, however it is
plotted too close to the legend for my liking. To remedy this I increased
the upper margin of the plot using plot(data, position = c(0,0,1,.9)) and
attempted to move "SNA" upwards and to the right. I have tried using a
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]]
2009 Jul 21
2
Adjusting x/y text labels for a bwplot using cex.lab
Searched for this and found some help, but I still can't figure it out.
I have trying to enlarge the x and y labels on my box plot. I understand
that you can do this using "cex.lab", but it does not seem to be working for
me. I must be adding it in the wrong spot. Any help would be greatly
appreciated. Here is my code:
bwplot(hr~Herd, data=telemetry, notch=T, ylab="Home
2007 Sep 14
6
replace NA value with 0
Hi,
how can I replace NA value with 0:
1991 217 119 103 109 137 202 283 240 146 NA
1992 270 174 149 144 166 239 278 237 275 NA
1993 146 111 104 89 98 131 153 148 175 NA
1994 177 123 146 124 121 200 266 191 240 106
1995 145 98 95 89 95 130 183 161 164 129
1996 145 98 89 90 93 138 158 131 161 161
1991 217 119 103 109 137 202 283 240 146 0
1992 270 174 149 144 166 239 278 237
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
2011 Jun 12
2
Side by side scatter plots with specified regression lines
I am new and self taught in R, so please bear with me.
I want to create two scatter plots side by side. The data set includes
measurements from two different countries with 7 treatments over a timeline
(x-axis).
Problem 1
I want to have each plot to include the data from one of the countries with
7 regression lines of the treatments, but I do no know how to divide the
data between them. This is