Fix years.

This commit is contained in:
mattbk 2024-01-10 22:11:23 -06:00
parent fee62c7451
commit d7036e60c9
3 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ ggplot(data = d_total %>% filter(Date >= as.Date("2000-01-01")),
color = source_name)) +
geom_line() +
geom_point(size = 0.3) +
scale_x_date(date_breaks = "1 years",
scale_x_date(date_breaks = "2 years",
date_minor_breaks = "3 months",
date_labels = "%Y") +
scale_y_continuous(labels = scales::comma) +
@ -71,7 +71,7 @@ ggplot(data = d_total %>% filter(Date >= as.Date("2000-01-01")),
color = "Source") +
theme(legend.position="bottom")
ggsave("plots/total-over-time.png", width = 6, height = 4)
ggsave("plots/total-over-time-2000.png", width = 6, height = 4)
##### By license class #####
ggplot(data = d_total_long %>% filter(lclass != "Total"),

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB