Function to create plot and knit to HTML in RMarkdown not working
问题 I have a function in an R Markdown document. The function takes a "case number" variable, which is used to filter some data frames, produce a plot, and output the plot to a knit html document. Here's the basic idea: --- title: "Plot" output: html_document: toc: true toc_float: true toc_depth: 2 --- ```{r echo=FALSE, results='hide',message=FALSE,warning=FALSE} library(dplyr) library(ggplot2) library(scales) library(lubridate) library(plotly) library(vistime) ``` ```{r echo = FALSE, warning