Skip to content

Instantly share code, notes, and snippets.

@kbroman
Last active May 11, 2021 02:16
Show Gist options
  • Save kbroman/4a897550211d0a6ed5e3c3da0d6288eb to your computer and use it in GitHub Desktop.
Save kbroman/4a897550211d0a6ed5e3c3da0d6288eb to your computer and use it in GitHub Desktop.
test of plotly in R Markdown
---
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