Load the data.
subscribers <- read.csv("C:/Users/Bhawna/Documents/blog/data/flowingdata_subscribers.csv", sep=",", header=TRUE)
View(subscribers)
Default plot with points.
plot(subscribers$Subscribers)
Default plot with type explicity specified.
plot(subscribers$Subscribers, type="p", ylim=c(0, 30000))
Draw vertical lines.
plot(subscribers$Subscribers, type="h", ylim=c(0, 30000))
Draw points with above lines.
plot(subscribers$Subscribers, type="h", ylim=c(0, 30000))
points(subscribers$Subscribers)
Edits with colors and labels.
plot(subscribers$Subscribers, type="h", ylim=c(0, 30000), xlab="Day", ylab="Subscribers")
points(subscribers$Subscribers, pch=19, col="blue")
Reference:The data was downloaded from the following website website.
Share this post
Twitter
Google+
Facebook
Reddit
LinkedIn
StumbleUpon
Email