Guest User

Untitled

a guest
Mar 30th, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.65 KB | None | 0 0
  1. ---
  2. title: "Charts"
  3. output:
  4.   flexdashboard::flex_dashboard:
  5.     theme: bootstrap
  6.     orientation: columns
  7.     source_code: embed
  8. ---
  9. ```{r message=FALSE, warning=FALSE}
  10. library(plotly)
  11. ```
  12.  
  13. # Charts
  14.  
  15. ## Column 1
  16.  
  17. ### Chart 1
  18.  
  19. ```{r}
  20. plot_ly(economics, x = ~pop)
  21. ```
  22.  
  23. ### Chart 2
  24.  
  25. ```{r}
  26. plot_ly(economics, x = ~date, y = ~pop)
  27. ```
  28.  
  29. ### Chart 3
  30.  
  31. ```{r}
  32. plot_ly(z = ~volcano)
  33. ```
  34.  
  35. ## Column 2
  36.  
  37. ### Chart 4
  38.  
  39. ```{r}
  40. add_lines(plot_ly(economics, x = ~date, y = ~unemploy/pop))
  41. ```
  42.  
  43. ### Chart 5
  44.  
  45. ```{r}
  46. plot_ly(y = ~rnorm(50), type = "box")
  47. ```
  48.  
  49. ### Chart 6
  50.  
  51. ```{r}
  52. plot_ly(iris, x = ~Sepal.Width, y = ~Sepal.Length)
  53. ```
Add Comment
Please, Sign In to add comment