Add a bunch of data from W5YI Report, add a facet plot of license classes.
This commit is contained in:
parent
a3a110fe5a
commit
2af20ea961
@ -23,4 +23,5 @@ how to slice up and caveat data, it will get more organized.
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
@ -99,6 +99,27 @@ ggplot(data = d_total_long %>% filter(lclass != "Total"),
|
||||
|
||||
ggsave("plots/class-over-time.png", width = 6, height = 4)
|
||||
|
||||
##### By license class, facet #####
|
||||
ggplot(data = d_total_long %>% filter(lclass != "Total"),
|
||||
aes(x = Date,
|
||||
y = count)) +
|
||||
geom_line() +
|
||||
geom_point(size = 0.3) +
|
||||
facet_wrap(~lclass) +
|
||||
scale_x_date(date_breaks = "10 years",
|
||||
date_minor_breaks = "1 year",
|
||||
date_labels = "%Y") +
|
||||
scale_y_continuous(labels = scales::comma) +
|
||||
scale_color_colorblind() +
|
||||
theme_bw() +
|
||||
labs(title = "US Amateur Licenses by Class",
|
||||
y = "Count",
|
||||
color = "Class",
|
||||
caption = "w1cdn.net") +
|
||||
theme(legend.position="bottom")
|
||||
|
||||
ggsave("plots/class-over-time-facet.png", width = 15, height = 9)
|
||||
|
||||
##### By license class, stacked #####
|
||||
# ggplot(data = d_total_long %>% filter(lclass != "Total"),
|
||||
# aes(x = Date,
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
plots/class-over-time-facet.png
Normal file
BIN
plots/class-over-time-facet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 524 KiB |
Loading…
Reference in New Issue
Block a user