From e56a257429df07d87d84d2cc3938cdba87ff8db0 Mon Sep 17 00:00:00 2001 From: Joyce Robbins Date: Tue, 24 Sep 2019 14:10:31 -0400 Subject: [PATCH] add ggplot library to tidyquant.Rmd --- basics.Rmd | 4 ++-- tidyquant.Rmd | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/basics.Rmd b/basics.Rmd index 818b8e282..f9d24c102 100644 --- a/basics.Rmd +++ b/basics.Rmd @@ -95,7 +95,7 @@ output: fig_width: 5 ``` -Another method is to click the gear `r emo::ji("gear")` next to the Knit button, then **Output Options...**, and finally the **Figures** tab. +Another method is to click the gear `r emo::ji("gear")` next to the Knit button, then **Output Options...**, and finally the **Figures** tab. Then as needed override one or more defaults in particular chunks: @@ -106,7 +106,7 @@ Figure related chunk options include `fig.width`, `fig.height`, `fig.asp`, and ` ### Viewing plots in plot window -Would you like your plots to appear in the plot window instead of below each chunk in the `.Rmd` file? Click `r emo::ji("gear")` and then **Chunk Output in Console**. +Would you like your plots to appear in the plot window instead of below each chunk in the `.Rmd` file? Click `r emo::ji("gear")` and then **Chunk Output in Console**. ```{r, echo = FALSE, eval = FALSE} diff --git a/tidyquant.Rmd b/tidyquant.Rmd index 7b18da8ae..260e65b32 100644 --- a/tidyquant.Rmd +++ b/tidyquant.Rmd @@ -20,6 +20,7 @@ This section covers how to use the `tidyquant` package to conduct timeseries ana To install `tidyquant`, you can run the following code: ```{r message=FALSE} # install.packages("tidyquant") +library(ggplot2) library(tidyquant) ```