Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Plot Time serie from CSV in four lines with R
library(xts)
dollar_rate <- read.csv("dollar_rate.csv", colClasses = c("Date", NA))
dollar_rate_ts <- xts(dollar_rate$VALUE, order.by = dollar_rate$DATE)
plot(dollar_rate_ts, main = "Dollar Rate", xlab = "Date", ylab = "$")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment