Code
$subject %>%
MIm_var print_table_conditional
subject | Subject |
---|---|
E | Employee |
EP | Employed person |
LB | Labour force |
NILF | Not in labour force |
UE | Unemployed person |
UR | Unemployment rate |
Data - Statjp
$subject %>%
MIm_var print_table_conditional
subject | Subject |
---|---|
E | Employee |
EP | Employed person |
LB | Labour force |
NILF | Not in labour force |
UE | Unemployed person |
UR | Unemployment rate |
$seasonally_adjusted %>%
MIm_var print_table_conditional
seasonally_adjusted | Seasonally adjusted |
---|---|
NSA | not seasonally adjusted |
SA | seasonally adjusted |
$sex %>%
MIm_var print_table_conditional
sex | Sex |
---|---|
B | Both sexes |
F | Female |
M | Male |
$unit %>%
MIm_var print_table_conditional
unit | Unit |
---|---|
PCT | Percent |
TTP | Ten thousand persons |
%>%
MIm group_by(series_code, series_name) %>%
summarise(Nobs = n()) %>%
print_table_conditional
%>%
MIm filter(subject == "UR",
== "SA") %>%
seasonally_adjusted ggplot(.) + geom_line(aes(x = period, y = value/100, color = Sex)) +
theme_minimal() + xlab("") + ylab("") +
scale_x_date(breaks = seq(1940, 2020, 5) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = 0.01*seq(0, 200, 1),
labels = percent_format(acc = 1)) +
scale_color_manual(values = viridis(4)[1:3]) +
theme(legend.position = c(0.2, 0.8),
legend.title = element_blank())
%>%
MIm filter(subject == "UR",
== "SA",
seasonally_adjusted >= as.Date("1985-01-01"),
period <= as.Date("2000-01-01")) %>%
period ggplot(.) + geom_line(aes(x = period, y = value/100, color = Sex)) +
theme_minimal() + xlab("") + ylab("") +
scale_x_date(breaks = seq(1940, 2020, 1) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = 0.01*seq(0, 200, 1),
labels = percent_format(acc = 1)) +
scale_color_manual(values = viridis(4)[1:3]) +
theme(legend.position = c(0.2, 0.8),
legend.title = element_blank())
%>%
MIm filter(subject == "UR",
== "SA",
seasonally_adjusted >= as.Date("1980-01-01"),
period <= as.Date("2010-01-01")) %>%
period ggplot(.) + geom_line(aes(x = period, y = value/100, color = Sex)) +
theme_minimal() + xlab("") + ylab("") +
scale_x_date(breaks = seq(1940, 2020, 2) %>% paste0("-01-01") %>% as.Date,
labels = date_format("%y")) +
scale_y_continuous(breaks = 0.01*seq(0, 200, 1),
labels = percent_format(acc = 1)) +
scale_color_manual(values = viridis(4)[1:3]) +
theme(legend.position = c(0.2, 0.8),
legend.title = element_blank())