Displaying 20 results from an estimated 3000 matches similar to: "ScatterPlot"
2009 Oct 25
2
row subtraction
I don't know if there is a way to do this in R but I want to subtract
within the same column from different rows. I want to subtract
c(r)-c(r-1) and continue down the column until they are all calculated
and form another column. Again I don't know if R can do this but I
thought I would ask.
Thanks either way
2012 Sep 26
1
Interaction scatterplots in ggplot with multiple regression lines
I'm trying to treat a continuous variable as discrete for plotting
multiple regression lines in a scatterplot as a function of the level
on the moderating variable. In the example below, there is only one
regression line plotted to the whole data. I would like a separate
regression line for each discrete level of the moderator. The
moderator is continuous, so I'd like to treat it as
2009 Jun 24
2
lapply across using multiple columns
Hi,
To set a simple an clear picture of what I'd like to do, here is an example.
I would like to calculate mean of column A and B bucketed by factor in
column X in a data.frame. lapply or aggregate operates on a single column. I
found dapply function in some package which doesn't seem to exist any more.
Is there anyway that I can accomplish something like this? Thank you so much
in
2008 May 02
3
data transformation
Dear all,
how can I, with R, transform a presence-absence (0/1) matrix of species
occurrences into a presence-only table (3 columns) with the names of the
species (1st column), the lat information of the sites (2nd column) and
the lon information of the sites (3rd column), as given in the below
example?
Thanks a lot for your help!
Christian
my dataframe:
site lat lon spec1 spec2 spec3 spec4
2009 Oct 21
1
Question on mixed effect models with LME
Good afternoon
Using R 2.9.2 on a machine running Windows XP
I have a longitudinal data set, with data on schools and their test scores over a four year period. I have centered year, and run the following
m1.mod1 <- lme(fixed = math_1 ~ I(year-2007.5)*TFC_,
data = long,
random = ~I(year-2007.5)|schoolnum,
na.action = "na.omit")
where
2009 Apr 26
4
Scatterplot of two groups side-by-side?
Dear all
I'm realy new to R, so I hope you can help me, as I didn't find any solution in the common books.
Since some days I'm trying to create the following plot: A scatterplott showning two different groups side-by-side with according regression lines. Both datasets only have the same five factors, so the scatters will form a kind of column at each factor. When I use
2010 Oct 04
2
i have aproblem --thank you
dear professor:
thank you for your help,witn your help i develop the nomogram successfully.
after that i want to do the internal validation to the model.i ues the bootpred to do it,and then i encounter problem again,just like that.(´íÎóÓÚerror to :complete.cases(x, y, wt) : ²»ÊÇËùÓеIJÎÊý¶¼Ò»Ñù³¤(the length of the augment was different))
i hope you tell me where is the mistake,and maybe i have
1997 Apr 08
1
R-alpha: User friendly functions
A loose idea for *post*-0.50 development
I've been giving a some (but not all that many) thoughts to whether
some of the conceptual difficulties facing newcomers could be avoided
by having simplified functions for common operations. We already have
parts of this, e.g. in Kurts ctest routines. Specifically, I was
thinking about data frames: How about
2010 Oct 04
1
I have aproblem about nomogram--thank you for your help
dear professor:
I have a problem about the nomogram.I have got the result through analysing the dataset "exp2.sav" through multinominal logistic regression by SPSS 17.0.
and I want to deveop the nomogram through R-Projject,just like this :
> n<-100
> set.seed(10)
> T.Grade<-factor(0:3,labels=c("G0", "G1", "G2","G3"))
>
2009 Oct 21
3
Missing data and LME models and diagnostic plots
Hello
Running R2.9.2 on Windows XP
I am puzzled by the performance of LME in situations where there are missing data. As I understand it, one of the strengths of this sort of model is how well it deals with missing data, yet lme requires nonmissing data.
Thus,
m1.mod1 <- lme(fixed = math_1 ~ I(year-2007.5)*TFC_,
data = long,
random =
2011 Oct 03
4
Question about ggplot2 and stat_smooth
I'm interested in creating a graphic -like- this:
c <- ggplot(mtcars, aes(qsec, wt))
c + geom_point() + stat_smooth(fill="blue", colour="darkblue", size=2,
alpha = 0.2)
but I need to show 2 sets of bands (with different shading) using 5%,
25%, 75%, 95% limits that I specify and where the heavy blue line is the
median. I don't understand how to do this with
2009 Feb 04
5
ggplot: problem with fill option in stat_smooth()
Hi all,
I am using ggplot2 and continuing to find it very useful and pretty.
However, I am trying to create some graphics for publication that would be
included in an MS Word document (not my choice!) in Windows Vista.
The problem is that I want to use stat_smooth() to add an fitted linear
model line along with its 95% confidence band, but I cannot seem to get the
confidence band in a format
2008 Dec 08
2
How to display y-axis labels in Multcomp plot
Dear R-users,
I'm currently using the multcomp package to produce plots of means with 95%
confidence intervals
i.e.
mult<-glht(lm(response~treatment, data=statdata),
linfct=mcp(treatment="Means"))
plot(confint(mult,calpha = sig))
Unfortunately the y-axis on the plot appears to be fixed and hence if the
labels on the y-axis (treatment levels) are too long, then they are not
2013 Dec 17
1
ggplot2: stat_smooth for family=binomial with cbind(Y, N) formula
With ggplot2, I can plot the glm stat_smooth for binomial data when the
response is binary or
a two-level factor as follows:
data("Donner", package="vcdExtra")
ggplot(Donner, aes(age, survived)) +
geom_point(position = position_jitter(height = 0.02, width = 0)) +
stat_smooth(method = "glm", family = binomial, formula = y ~ x,
alpha = 0.2, size=2)
But how can I
2008 May 30
1
Question about adding text to xYplot(Hmisc)
Hello,
I have been trying to make a graph that have error bars and text at
specific position.
I used the following code from the help file of xYplot(Hmisc) as an
example except I add a myPanel function, which is just supposed to add
letters from the alphabet at the position aligned at y = 3.
It constantly gives me error:
"Error using packet 1 argument "subscripts" is
2013 Mar 08
2
ggplot2: modifying line width and background fill color for stat_smooth()
In the example below, from
http://www.ling.upenn.edu/~joseff/rstudy/summer2010_ggplot2_intro.html
I'd like to make (a) the fitted line thicker and (b) change the
background fill color for the confidence
envelope around each fitted line to a low-alpha transparent version of
the same color used
for the separate fitted lines for GENDER, rather than grey for both.
How can I do this?
2007 Nov 16
1
Exponential Smoothing for ggplot2's stat_smooth()
Hello everyone,
I was wondering if anyone was aware of a way in which I could use ggplot's
stat_smooth() function for add an exponential moving average.
I was thinking that I could maybe use something like:
>myggplot + stat_smooth (method = 'HoltWinters( data , .9 , 0, 0)')
but my efforts were futile.
Perhaps there is a way to write my own custom method to throw into
2013 Jun 18
0
Florentina Jessica Marsha
http://new.yagut.com/gzme/zaa/xed/okz/yscgkl/mxcx.html
Florentina Jessica Marsha
pebd/div>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130618/c1a9cb20/attachment.html>
2007 Jan 28
2
Adding lines to xYplot
I am using xYplot to plot data and CIs. How do I add several lines to
the figure?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room 102 Gilmer Hall
McCormick Road Charlottesville, VA 22903
Office: B011 +1-434-982-4729
Lab: B019
2002 Oct 24
3
model.matrix (via predict) (PR#2206)
Full_Name: Glenn Stone
Version: 1.5.1 and 1.6.0
OS: win2000
Submission from: (NULL) (168.140.227.9)
The following code produces incorrect fitted values in version 1.5.1 and an
error in 1.6.0
Error in "contrasts<-"(*tmp*, value = "contr.treatment") :
contrasts apply only to factors
In addition: Warning message:
variable ihalf is not a factor in: