Re: [R] Plotting more than one regression line in ggplot

2019-06-06 Thread rain1290--- via R-help
1.210807614 y 2.90252830 > RCP4.5MEDIAN 224 >  >  >  > 1.216470664 y 2.75093766 RCP4.5MEDIAN 225 1.221914148 y -0.73815245 >  >  >  > RCP4.5MEDIAN 226 1.227580480 y 3.58554626 RCP4.5MEDIAN 227 >  > 1.233317788 y >  >  >  > 10.89961658 RCP4.5MEDIAN 228

Re: [R] Plotting more than one regression line in ggplot

2019-06-06 Thread rain1290--- via R-help
AN 242 > 0.581923368 y >  >  > 0.34822359 RCP8.5MEDIAN 243 0.592628298 y 3.06882935 RCP8.5MEDIAN 244 >  >  > 0.604230648 y -3.56142825 RCP8.5MEDIAN 245 0.615975167 y 10.35932554 >  >  > RCP8.5MEDIAN 246 0.627448279 y 10.21751629 RCP8.5MEDIAN 247 > 0.639401050 &g

Re: [R] Plotting more than one regression line in ggplot

2019-06-06 Thread rain1290--- via R-help
*//___^ >  > I receive this warning, however: >  > >  > Warning:Ignoring unknown aesthetics: onepctCO2MEDIAN Warning:Ignoring >  > unknown aesthetics: onepctCO2MEDIAN >  > >  > **//___^ >  > Perhaps I am not assigning the columns properly? Essentially,

Re: [R] Plotting more than one regression line in ggplot

2019-06-06 Thread rain1290--- via R-help
d! > > -Original Message- > From: Rui Barradas > To: rain1290 ; r-help ; > r-sig-geo > Sent: Wed, Jun 5, 2019 10:52 am > Subject: Re: [R] Plotting more than one regression line in ggplot > > Hello, > > This is pretty basic ggplot. > > > lm1 <- ggplot(o

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread rain1290--- via R-help
gplot(df2, aes(x, y, group = id, colour = factor(id))) +   geom_point() +   geom_smooth(method = 'lm') Hope this helps, Rui Barradas Às 15:21 de 05/06/19, rain1290--- via R-help escreveu: > I am trying to plot, using ggplot, a series of scatter plots with regression > lines for several data

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread rain1290--- via R-help
for the scatter plot and not the regression line? -Original Message- From: David Winsemius To: r-help Sent: Wed, Jun 5, 2019 12:00 pm Subject: Re: [R] Plotting more than one regression line in ggplot On 6/5/19 8:04 AM, rain1290--- via R-help wrote: > Hi Jeff (and everyone), > &

Re: [R] Plotting more than one regression line in ggplot

2019-06-05 Thread rain1290--- via R-help
same error/warning appears when running it. Oddly enough, the scatter plot is just fine - it's the regression line that struggles to appear. Could there be another reason for that? Thanks, again, -Original Message- From: Jeff Newmiller To: rain1290 ; rain1290--- via R-help ; r-help ; r-sig

[R] Plotting more than one regression line in ggplot

2019-06-05 Thread rain1290--- via R-help
I am trying to plot, using ggplot, a series of scatter plots with regression lines for several datasets. I started with the following dataset, "onepectCO2MEDIAN". The data for this dataset is as follows:     onepctCO2MEDIAN     x  y     layer.1   0.0  0.000    

[R] Creating a median curve among multiple curvesin ggplot

2019-06-04 Thread rain1290--- via R-help
Hi there, Using ggplot, I have successfully created a plot that contains 37 separate line plots that each represent a trend in precipitation over 140 years. However, what I would like to do is show the curve that is the "median" of these lines. Is this possible to do?  Here is what I have so

Re: [R] Creating a mean line plot

2019-04-14 Thread rain1290--- via R-help
mensions (nrow, ncol)]. --Bill William Michels, Ph.D. On Fri, Apr 12, 2019 at 11:09 AM rain1290--- via R-help wrote: > > Hi Eric, > > Ah, I apologize, and thank you for your response! > I just figured out a way to average my x-values, so at least that is solved. > I will still

Re: [R] Creating a mean line plot

2019-04-12 Thread rain1290--- via R-help
ot;, "X75", "X76", "X77", "X78", "X79", "X80", "X81", "X82",     "X83", "X84", "X85", "X86", "X87", "X88", "X89", "X90"))) Is there a

[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:

[R] Weighted spatial averages across grid cells in NetCDF file

2019-03-18 Thread rain1290--- via R-help
Hi there, I am currently working on a project that involves climate model data stored in a NetCDF file. I am currently trying to calculate "weighted" spatial annual "global" averages for precipitation. I need to do this for each of the 95 years of global precipitation data that I have. The idea

[R] Problems trying to make a time series using NetCDF file

2019-03-16 Thread rain1290--- via R-help
Hi there, I am using climate model data in attempt to create a time series for a specific location. Getting longitude and latitude is fine. However, I am receiving the following error when using the "ncvar_get" function in trying to derive the "time" dimension: Error in

[R] Problems trying to place a global map with Ncdf data plot

2019-02-17 Thread rain1290--- via R-help
Hello there, I am trying to overlay a global map with ncdf data of precipitation for a particular location (using specific coordinates). The file is in ncdf format (commonly used to store away climate data), and I am currently attempting to place a global map on plotted precipitation values.