search for: fullrang

Displaying 3 results from an estimated 3 matches for "fullrang".

Did you mean: fullrange
2012 Sep 26
1
Interaction scatterplots in ggplot with multiple regression lines
...00, 3) outcome <- rnorm(1000, 10) moderator <- rnorm(1000) mydata <- data.frame(predictor, outcome, moderator) ggplot(mydata, aes(x=predictor, y=outcome, color=moderator)) + geom_point() + scale_colour_gradient2(low="blue", high="red") + stat_smooth(method=lm, se=TRUE, fullrange=T) ########################### Also, how can I set how many discrete levels to plot (e.g., 3 instead of 7)? Thanks in advance!
2008 Sep 19
1
reproduce this graph in ggplot2 (code and data included)
How can I reproduce this graph in ggplot2 (regression lines and data point superimposed). Thanks, Juliet filename="http://personality-project.org/r/datasets/heating.txt" heating=read.table(filename,header=TRUE) symb=c(19,25,3,23) colors=c("black","red","green","blue")
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