Skip to content

Commit d019d48

Browse files
committed
fixing bar graph size for island plots
1 parent ffc19ea commit d019d48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

viz.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ the landmass sizes. So we have to pass the `stat = "identity"` argument to `geom
898898
shown in Figure \@ref(fig:03-data-islands-bar).
899899
\index{ggplot!geom\_bar}
900900

901-
```{r 03-data-islands-bar, warning=FALSE, message=FALSE, fig.width=5, fig.height=4, fig.align = "center", fig.cap = "Bar plot of all Earth's landmasses' size with squished labels."}
901+
```{r 03-data-islands-bar, warning=FALSE, message=FALSE, fig.width=5, fig.height=3, fig.align = "center", fig.cap = "Bar plot of all Earth's landmasses' size with squished labels."}
902902
islands_bar <- ggplot(islands_df, aes(x = landmass, y = size)) +
903903
geom_bar(stat = "identity")
904904
@@ -960,7 +960,7 @@ Thus we use the `fill` argument inside `labs` to change that to "Type."
960960
Finally, we again \index{ggplot!reorder} use the `theme` function
961961
to change the font size.
962962

963-
```{r 03-data-islands-bar-4, warning = FALSE, message = FALSE, fig.width=8, fig.align="center", fig.cap = "Bar plot of size for Earth's largest 12 landmasses colored by whether its a continent with clearer axes and labels."}
963+
```{r 03-data-islands-bar-4, warning = FALSE, message = FALSE, fig.width=5, fig.height=3, fig.align="center", fig.cap = "Bar plot of size for Earth's largest 12 landmasses colored by whether its a continent with clearer axes and labels."}
964964
islands_bar <- ggplot(islands_top12,
965965
aes(x = size,
966966
y = fct_reorder(landmass, size, .desc = TRUE),

0 commit comments

Comments
 (0)