[R] Display time of PDF plots

Rich Shepard r@hep@rd @end|ng |rom @pp|-eco@y@@com
Tue Sep 4 18:41:03 CEST 2018


On Mon, 3 Sep 2018, Rich Shepard wrote:

> Is there a process by which these plots can be 'thinned' so they show the
> same overall patterns but with fewer points so they display more quickly?

Bert/Paul/David/John:

   Thanks very much for the suggestions. I think an appropriate way to
illustrate the patterns is to plot the median and maximum for each month
(for all sites). That's the important information and plotting each daily
point over 13 years obscures that information.

   The dataframe is structured this way:

str(rainfall)
'data.frame':	113569 obs. of  6 variables:
  $ name    : chr  "Headworks Portland Water" "Headworks Portland Water" "Headworks Portland Water" "Headworks Portland Water" ...
  $ easting : num  2370575 2370575 2370575 2370575 2370575 ...
  $ northing: num  199338 199338 199338 199338 199338 ...
  $ elev    : num  228 228 228 228 228 228 228 228 228 228 ...
  $ sampdate: Date, format: "2005-01-01" "2005-01-02" ...
  $ prcp    : num  0.59 0.08 0.1 0 0 0.02 0.05 0.1 0 0.02 ...

   There are probably multiple ways of extracting the monthly median and
maximum 'prcp' and I don't know how to identify the appropriate one. Is
there a task view for this type of data manipulation? I've not before done
anything like this and would appreciate a pointer to where I start to learn.

Regards,

Rich




More information about the R-help mailing list