Skip to content

Commit bb3dfe0

Browse files
committed
made all mauna loa plots the same size
1 parent bd1d5ff commit bb3dfe0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

viz.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ Let's now try to visualize the `co2_df` as a line plot
318318
with just the default arguments:
319319
\index{ggplot!geom\_line}
320320

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"}
322322
co2_line <- ggplot(co2_df, aes(x = date_measured, y = ppm)) +
323323
geom_line()
324324
@@ -351,7 +351,7 @@ change the font size, we use the `theme` function with the `text` argument:
351351
> Interested readers may consult the `theme` function documentation;
352352
> see the additional resources section at the end of this chapter.
353353
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"}
355355
co2_line <- ggplot(co2_df, aes(x = date_measured, y = ppm)) +
356356
geom_line() +
357357
xlab("Year") +
@@ -385,7 +385,7 @@ to convert the character strings we provide to `c` to `date` vectors.
385385
> but is not loaded by it.
386386
> Hence we need to load it separately in the code below.
387387
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"}
389389
library(lubridate)
390390
391391
co2_line <- ggplot(co2_df, aes(x = date_measured, y = ppm)) +

0 commit comments

Comments
 (0)