Create a web page presentation using R Markdown that features a plot created with Plotly.
12/14/2019
Create a web page presentation using R Markdown that features a plot created with Plotly.
## Classes 'spec_tbl_df', 'tbl_df', 'tbl' and 'data.frame': 574 obs. of 6 variables: ## $ date : Date, format: "1967-07-01" "1967-08-01" ... ## $ pce : num 507 510 516 512 517 ... ## $ pop : num 198712 198911 199113 199311 199498 ... ## $ psavert : num 12.6 12.6 11.9 12.9 12.8 11.8 11.7 12.3 11.7 12.3 ... ## $ uempmed : num 4.5 4.7 4.6 4.9 4.7 4.8 5.1 4.5 4.1 4.6 ... ## $ unemploy: num 2944 2945 2958 3143 3066 ...
Let’s plot number of unemployed by date
## [1] "plot_ly(x =economics$date, y = economics$unemploy)"