You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: viz.Rmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -318,7 +318,7 @@ Let's now try to visualize the `co2_df` as a line plot
318
318
with just the default arguments:
319
319
\index{ggplot!geom\_line}
320
320
321
-
```{r 03-data-co2-line, warning=FALSE, message=FALSE, fig.cap = "Line plot of atmospheric concentration of CO$_{2}$ over time"}
321
+
```{r 03-data-co2-line, warning=FALSE, message=FALSE, fig.height = 4, fig.width = 6, fig.cap = "Line plot of atmospheric concentration of CO$_{2}$ over time"}
322
322
co2_line <- ggplot(co2_df, aes(x = date_measured, y = ppm)) +
323
323
geom_line()
324
324
@@ -351,7 +351,7 @@ change the font size, we use the `theme` function with the `text` argument:
351
351
> Interested readers may consult the `theme` function documentation;
352
352
> see the additional resources section at the end of this chapter.
353
353
354
-
```{r 03-data-co2-line-2, warning=FALSE, message=FALSE, fig.cap = "Line plot of atmospheric concentration of CO$_{2}$ over time with clearer axes and labels"}
354
+
```{r 03-data-co2-line-2, warning=FALSE, message=FALSE, fig.height = 4, fig.width = 6, fig.cap = "Line plot of atmospheric concentration of CO$_{2}$ over time with clearer axes and labels"}
355
355
co2_line <- ggplot(co2_df, aes(x = date_measured, y = ppm)) +
356
356
geom_line() +
357
357
xlab("Year") +
@@ -385,7 +385,7 @@ to convert the character strings we provide to `c` to `date` vectors.
385
385
> but is not loaded by it.
386
386
> Hence we need to load it separately in the code below.
387
387
388
-
```{r 03-data-co2-line-3, warning = FALSE, message = FALSE, fig.cap = "Line plot of atmospheric concentration of CO$_{2}$ from 1990 to 1994"}
388
+
```{r 03-data-co2-line-3, warning = FALSE, message = FALSE, fig.height = 4, fig.width = 6, fig.cap = "Line plot of atmospheric concentration of CO$_{2}$ from 1990 to 1994"}
389
389
library(lubridate)
390
390
391
391
co2_line <- ggplot(co2_df, aes(x = date_measured, y = ppm)) +
0 commit comments