Skip to content

Instantly share code, notes, and snippets.

@CristhianBoujon
Last active July 28, 2017 23:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save CristhianBoujon/35291cb6e3d8934d79c6dbadec864d32 to your computer and use it in GitHub Desktop.
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