library(PRcalc)
data(jp_upper_2019)
data(jp_lower_2021)
<- prcalc(jp_upper_2019, m = 50, method = "dt")
pr_obj1 plot(pr_obj1)
<- prcalc(jp_lower_2021,
pr_obj2 m = c(8, 14, 20, 21, 17, 11, 21, 30, 11, 6, 21),
method = "hare")
plot(pr_obj2, angle = 90)
plot(pr_obj2, subset_l2 = c("自民", "公明", "立憲", "維新", "国民"))
plot(pr_obj2, subset_l1 = c("Tokyo", "Kinki"), facet_col = 1)
plot(pr_obj2, by = "l2",
subset_l2 = c("自民", "公明", "立憲", "維新"),
subset_l1 = c("Hokkaido", "Tohoku", "Tokyo", "Kinki"))