Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. df <- rnorm(1260, 0.06, 0.2)
  2.  
  3. Error: Aesthetics must be either length 1 or the same as the data (1260): x
  4.  
  5. price <- rnorm(1260, 0.06, 0.2)
  6.  
  7. date <- c("Jan", "Feb", "Mär", "Apr", "Mai", "Jun",
  8. "Jul", "Aug", "Sep", "Okt", "Nov", "Dez")
  9. date <- rep(date, 5)
  10.  
  11. data.frame(date=date, price=price) %>%
  12. ggplot(aes(x = date, y = price)) +
  13. geom_line() +
  14. labs(title = "Stock Price Chart", y = "Price", x = "date")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement