Modify plots.

This commit is contained in:
mattbk
2026-01-02 11:50:41 -06:00
parent 9fca1ed165
commit 491c0058bd
4 changed files with 11 additions and 3 deletions

View File

@@ -113,13 +113,18 @@ ggplot(data = d_total %>% filter(Date >= Sys.Date() - years(2)),
labs(title = paste0("US Amateur Licenses since ", Sys.Date() - years(2)), labs(title = paste0("US Amateur Licenses since ", Sys.Date() - years(2)),
caption = "w1cdn.net", caption = "w1cdn.net",
color = "Source") + color = "Source") +
theme(legend.position="bottom") theme(legend.position="bottom") +
facet_wrap(~source_name,
scales = "free_y",
ncol = 1)
ggsave("plots/total-over-time-2-years.png", width = 6, height = 4) ggsave("plots/total-over-time-2-years.png", width = 6, height = 4)
##### ARRL Total over time, 2 months ##### ##### ARRL Total over time, 2 months #####
ggplot(data = d_total %>% filter(Date >= Sys.Date() - months(2), ggplot(data = d_total %>% filter(Date >= Sys.Date() - months(2),
source_name == "ARRL FCC License Counts"), source_name %in% c("ARRL FCC License Counts",
"AE7Q",
"HamCall")),
aes(x = Date, aes(x = Date,
y = Total, y = Total,
color = source_name)) + color = source_name)) +
@@ -133,7 +138,10 @@ ggplot(data = d_total %>% filter(Date >= Sys.Date() - months(2),
labs(title = paste0("US Amateur Licenses since ", Sys.Date() - months(2)), labs(title = paste0("US Amateur Licenses since ", Sys.Date() - months(2)),
caption = "w1cdn.net", caption = "w1cdn.net",
color = "Source") + color = "Source") +
theme(legend.position="bottom") theme(legend.position="bottom") +
facet_wrap(~source_name,
scales = "free_y",
ncol = 1)
ggsave("plots/total-over-time-2-months.png", width = 6, height = 4) ggsave("plots/total-over-time-2-months.png", width = 6, height = 4)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

After

Width:  |  Height:  |  Size: 224 KiB