Last active
May 11, 2021 02:16
-
-
Save kbroman/4a897550211d0a6ed5e3c3da0d6288eb to your computer and use it in GitHub Desktop.
test of plotly in R Markdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "test_plotly" | |
author: "Karl" | |
date: "5/10/2021" | |
output: html_document | |
--- | |
Compile this at command line with | |
``` | |
R -e "rmarkdown::render('test_plotly.Rmd')" | |
``` | |
```{r test_plotly} | |
library(plotly) # test deleting this line | |
data(economics, package="ggplot2") | |
plotly::plot_ly(economics, x = ~pop) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment