Fix up actions plot, add to readme, add a little more data.
This commit is contained in:
parent
81e5fbef6c
commit
419d39c569
|
@ -52,3 +52,4 @@ All the data in these plots is in https://amiok.net/gitea/W1CDN/ham-radio-licens
|
|||
![Alt text](plots/states-over-time-freey.png)
|
||||
![Alt text](plots/cities-over-time.png)
|
||||
![Alt text](plots/cities-over-time-freey.png)
|
||||
![Alt text](plots/actions-over-time.png)
|
||||
|
|
|
@ -42,7 +42,8 @@ city <- city_raw %>% mutate(Date = as.Date(Date),
|
|||
|
||||
#### License Actions ####
|
||||
ae7q_actions <- read.csv("data/ae7q-actions-scraped.csv") %>%
|
||||
mutate(date = as.Date(date))
|
||||
mutate(date = as.Date(date)) %>%
|
||||
filter(!is.na(action))
|
||||
|
||||
#### Plots ####
|
||||
|
||||
|
@ -294,11 +295,17 @@ ggplot(data = ae7q_actions,
|
|||
y = count,
|
||||
color = action)) +
|
||||
geom_line() +
|
||||
scale_x_date(date_breaks = "7 days",
|
||||
date_minor_breaks = "1 days",
|
||||
scale_x_date(date_breaks = "1 month",
|
||||
date_minor_breaks = "1 week",
|
||||
date_labels = "%Y-%m-%d") +
|
||||
facet_wrap(~action,
|
||||
scales = "free_y") +
|
||||
theme_bw() +
|
||||
labs(title = "US Amateur License Actions",
|
||||
y = "Count",
|
||||
x = "Date",
|
||||
caption = "w1cdn.net",
|
||||
color = "Action")
|
||||
color = "Action") +
|
||||
guides(color = "none")
|
||||
|
||||
ggsave("plots/actions-over-time.png", width = 6, height = 4)
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
# Counts of license actions by date
|
||||
# Use this file to scrape a series of dates from AE7Q
|
||||
|
||||
date_vec = seq(as.Date("2024-08-01"), as.Date("2024-09-21"), by="days")
|
||||
# Set start and end date
|
||||
date_vec <- seq(as.Date("2024-07-23"), as.Date("2024-07-31"), by="days")
|
||||
# Randomize dates we are querying
|
||||
date_vec <- sample(date_vec)
|
||||
|
||||
ae7q_list <- list()
|
||||
for(i in 1:length(date_vec)){
|
||||
|
@ -45,9 +48,13 @@ for(i in 1:length(date_vec)){
|
|||
"source" = "AE7Q",
|
||||
"source_detail" = ae7q_new_url)
|
||||
}
|
||||
# Wait for random time up to 10 seconds
|
||||
Sys.sleep(sample(1:10, 1))
|
||||
}
|
||||
|
||||
a <- bind_rows(ae7q_list)
|
||||
# Combine all the data and sort by date
|
||||
a <- bind_rows(ae7q_list) %>%
|
||||
arrange(date)
|
||||
|
||||
write.csv(a, "out/ae7q-actions-scraped.csv", row.names = F)
|
||||
|
||||
|
|
|
@ -1,4 +1,27 @@
|
|||
date,action,count,source,source_detail
|
||||
2024-07-23,LIISS - License Issued,4,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-23
|
||||
2024-07-23,LIREN - License Renewed,263,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-23
|
||||
2024-07-23,SYSGRT - New Systematic Call Sign Assigned,225,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-23
|
||||
2024-07-23,VANGRT - Vanity Call Sign Assigned,46,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-23
|
||||
2024-07-24,LIREN - License Renewed,129,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-24
|
||||
2024-07-24,SYSGRT - New Systematic Call Sign Assigned,129,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-24
|
||||
2024-07-25,LIREN - License Renewed,114,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-25
|
||||
2024-07-25,SYSGRT - New Systematic Call Sign Assigned,88,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-25
|
||||
2024-07-26,LIISS - License Issued,2,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-26
|
||||
2024-07-26,LIREN - License Renewed,91,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-26
|
||||
2024-07-26,SYSGRT - New Systematic Call Sign Assigned,64,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-26
|
||||
2024-07-26,VANGRT - Vanity Call Sign Assigned,51,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-26
|
||||
2024-07-27,LIREN - License Renewed,101,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-27
|
||||
2024-07-27,SYSGRT - New Systematic Call Sign Assigned,47,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-27
|
||||
2024-07-27,VANGRT - Vanity Call Sign Assigned,19,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-27
|
||||
2024-07-28,NA,NA,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-28
|
||||
2024-07-29,LIREN - License Renewed,1,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-29
|
||||
2024-07-30,LIISS - License Issued,1,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-30
|
||||
2024-07-30,LIREN - License Renewed,77,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-30
|
||||
2024-07-30,SYSGRT - New Systematic Call Sign Assigned,147,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-30
|
||||
2024-07-30,VANGRT - Vanity Call Sign Assigned,57,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-30
|
||||
2024-07-31,LIREN - License Renewed,314,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-31
|
||||
2024-07-31,SYSGRT - New Systematic Call Sign Assigned,74,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-07-31
|
||||
2024-08-01,LIREN - License Renewed,129,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-08-01
|
||||
2024-08-01,SYSGRT - New Systematic Call Sign Assigned,25,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-08-01
|
||||
2024-08-02,LIISS - License Issued,1,AE7Q,https://www.ae7q.com/query/list/ProcessDate.php?DATE=2024-08-02
|
||||
|
|
|
BIN
plots/actions-over-time.png
Normal file
BIN
plots/actions-over-time.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 268 KiB |
Loading…
Reference in New Issue
Block a user