Re: [R] Creating a mean line plot

2019-04-14 Thread rain1290--- via R-help
c(10L, 90L), .Dimnames = list(NULL, >    c("X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", >    "X11", "X12", "X13", "X14", "X15", &

Re: [R] Creating a mean line plot

2019-04-14 Thread William Michels via R-help
ot;, "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", > "X11", "X12", "X13", "X14", "X15", "X16", "X17", "X18", "X19", >

Re: [R] Creating a mean line plot

2019-04-12 Thread rain1290--- via R-help
uot;, "X58", "X59", "X60", "X61", "X62", "X63", "X64",     "X65", "X66", "X67", "X68", "X69", "X70", "X71", "X72", "X73",     "X74&qu

Re: [R] Creating a mean line plot

2019-04-12 Thread Eric Berger
I don't have your data. Are the x-values the same in both plots? Does this example cover the situation? f1 <- function(x) { x^3 - 2 } f2 <- function(x) { 2 - x^2 } xV <- seq(from=0,to=2,length=50) y1 <- f1(xV) y2 <- f2(xV) y3 <- .5*(y1+y2) plot(x=xV,y=y1,col="blue",lwd=2,type='l',xlab="x",ylab="y

[R] Creating a mean line plot

2019-04-12 Thread rain1290--- via R-help
Hi there, I am trying to create a mean line plot that shows the mean of a series of separate line plots that correspond to two climate models. Let's first try getting the mean of two line plots. To create the separate line plots, here is what I did to set up the x and y axis variables: Gett