R-Blogger블로그·해설한국어2025-04-22
선거채 데이터 차트로 보기
Electoral bonds data in charts₹121억 규모의 채권이 2019년 4월부터 2024년 1월까지 구매되었습니다. 데이터는 dataful에서 다운로드했습니다. Reference number이 없거나 상태가 Expired인 행은 분석에서 제외됩니다. 따라서 제외된 데이터의 수치는 아래와 같습니다.Code highchart() | hc_chart(type = "sankey", inverted = FALSE) | hc_add_series( data = list_parse(sankey.dat), nodes = list_parse(nodes), name = "Flow", type = "sankey", nodeWidth = 20, linkOpacity = 0.5, states = list( hover = list( linkOpacity = 0.8 ) ) ) | hc_plotOptions( sankey = list( nodePadding = 3, curveFactor = 0.6, colors = c("#1f77b4", "#ff7f0e", "#2ca02c"), linkColor = "#d3d3d3" ) ) | hc_title( text = "Flow of Electoral Bonds", align = "left", style = list( textDecoration = "underline", color = "#333333", fontWeight = "bold" ) ) | hc_subtitle( text = "Electoral bond encashment between Apr 16, 2019 and Jan 24, 2024" ) | hc_tooltip( formatter = JS(" function() { var amount = this.point.weight; if (typeof amount === 'undefined') { return '' + this.point.name + ''; } if (amount = 1000000000) { return '' + this.point.from + ' to ' + this.point.to + ': ₹' + (amount/1000000000).toFixed(2) + 'B'; } else { return '' + this.point.from + ' to ' + this.point.to + ': ₹' + (amount/1000000).toFixed(2) + 'M'; } } ") ) | hc_credits( enabled = TRUE, text = "Heteroscedasticity" ) | hc_add_theme(custom_theme) | hc_exporting( enabled = TRUE, filename = "ElectoralBondFlow" )86% (₹ 105 B)의 금액이 5개 정당에 분배되었습니다. 91% (₹ 111 B)의 금액이 5개 주에서 발생했습니다.정당별 금액 분포plot_hc_pie_chart( amount_by_party, xval = "standardised_political_party_name", yval = "total_amount", series_name = "Amount", theme = custom_theme, title_text = "Amount by Political Party", subtitle_text = "Electoral bond encashment between Apr 16, 2019 and Jan 24, 2024", output_filename = "AmountByPoliticalParty" )주별 금액 분포plot_hc_pie_chart( amount_by_state, xval = "issue_branch_state", yval = "total_amount", series_name = "Amount", theme = custom_theme, title_text = "Amount by State", output_filename = "AmountByState", subtitle_text = "Electoral bond encashment between Apr 16, 2019 and Jan 24, 2024" )
원문 URL
전체 글은 원문 페이지에서 이어서 읽을 수 있습니다.
- 작성자
- R-Blogger
- 출처
- R-Blogger
- 플랫폼
- R-Blogger
- 분류
- 블로그·해설
- 언어
- 한국어
- 발행일
- 2025-04-22