This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello everyone,
It's been some time since I've had to use R for school work, and I've barely (almost never) used it since the last course I took that required it. This class's final assignment requires brief use of R, and I've hit a sticking point.
The assignment requires us reading two files (call them df1 and df2 for the sake of this post) to plot on an x-axis, then counting the number of occurrences on each date within the data series. The layout of each data series follows this format:
The homework calls for us to plot df1 in black and df2 in red, both in the same graph on the x-axis, with the number of occurrences on a particular date on the y-axis.
From what I understand/remember, I'm trying to use something similar to:
plot(df1, type='o', col='black', xlab='Date', ylab='Loss', main='# of Occurrences')
lines(df2,col='black')
But I'm getting this crazy result:
Can someone help me out and give me a nudge in the right direction?
Thanks in advance!
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/rstats/comm...