Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
minor adjustments to the example code to work with the latest version of ggplot2 and other dependencies
  • Loading branch information
davedgd authored Jan 23, 2022
1 parent 06588fb commit 44ea86e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ p1 <- ggplot(mtcars, aes(x = brand, fill = carb)) +
facet_wrap(vars(am, vs, gear), strip.position = "top", scales = "free_x", nrow = 1) +
theme_bw(base_size = 15) +
theme(panel.spacing = unit(0, "lines"),
strip.background = element_rect(color = "black", size = 0, fill = "grey92"),
strip.background = element_rect(color = "black", size = 0.1, fill = "grey92"),
strip.placement = "outside",
axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.3),
panel.grid.major = element_blank(),
panel.grid.minor = element_line(colour = "grey"),
panel.border = element_rect(color = "black", fill = NA, size = 0),
panel.border = element_rect(color = "black", fill = NA, size = 0.1),
panel.background = element_rect(fill = "white"))

# show/save base ggplot2 bar chart
Expand All @@ -52,4 +52,4 @@ ggsave("p1.png", width = 20, height = 5)
(p2 <- ggNestedBarChart(p1))
ggsave("p2.png", width = 20, height = 5)
```
![ggNestedBarChart Example](p2.png?raw=true "ggNestedBarChart Example")
![ggNestedBarChart Example](p2.png?raw=true "ggNestedBarChart Example")

0 comments on commit 44ea86e

Please sign in to comment.