Note that there are some explanatory texts on larger screens.

plurals
  1. POSeveral or multiple timeseries plot outputs from a single data frame
    text
    copied!<h1>Hello,</h1> <p>I have been struggling with this problem for a while now and anyone who can help me out I would greatly appreciate it. </p> <p>First off, I am working with time series data in a single data frame containing multiple time series. Too many to output individually into graphs. I have tried passing qplot() through ddply() however r tells me it qplot is not a function and therefore it will not work.</p> <p>the structure of my data is like this...</p> <pre><code>goodlocs &lt;- Loc Year dir Artesia 1983 1490 Artesia 1984 1575 Artesia 1986 1567 Artesia 1987 1630 Artesia 1990 1680 Bogota 1983 1525 Bogota 1984 1610 Bogota 1985 1602 Bogota 1986 1665 Bogota 1990 1715 Carlsbad 1983 1560 Carlsbad 1985 1645 Carlsbad 1986 1637 Carlsbad 1987 1700 Carlsbad 1990 1750 Carlsbad 1992 1595 Datil 1987 1680 Datil 1990 1672 Datil 1991 1735 Datil 1992 1785 </code></pre> <p>I have about 250 Locations(Locs) and would like to be able to go over each stations data on a graph like the following one so I can inspect all of my data visually. </p> <pre><code>Artesia &lt;- goodlocs[goodlocs$Loc == "Artesia",] qplot(YEAR, dir, data = Artesia, geom = c("point", "line"), xlab = "Year", ylab = "DIR", main = "Artesia DIR Over Record Period") + geom_smooth(method=lm) </code></pre> <p>I understand that Par() is supposed to help do this but I can not figure it out for the life of me. Any help is greatly appreciated. </p> <p>Thanks, </p> <p>-Zia</p> <p>edit - </p> <p>as Arun pointed out, I am trying to save a .pdf of 250 different graphs of my goodlocs df split by "Loc", with point and line geometry for data review.... </p> <p>I also tried passing a ddply of my df through qplot as the data but it did not work either, I was not really expecting it to but i had to try. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload