R for Political Science @stats_map
I post mainly about R packages and data sources for political science analysis. rforpoliticalscience.com Joined June 2020-
Tweets578
-
Followers4K
-
Following306
-
Likes195
How to set up garbage collection logs to learn about memory use in R. I break down GC logs and show how to stop R from crashing your machine. code: rforpoliticalscience.com/2026/01/08/i-n… #rstats #DataScience #CodingLife
Scraping Irish politicians' data and predicting the gender with the gender package in #rstats code: rforpoliticalscience.com/2025/01/31/how… #PoliticalScience #DataViz #IrishPolitics
Simpson’s Paradox is a fascinating statistical phenomenon where the relationship between two variables can completely change when a third variable is considered. This often leads to contradictory conclusions if not carefully analyzed. For example, in a data set, you might see a negative trend between variables X and Y. However, when you split the data into subgroups based on a third variable, Z, the trend might reverse or disappear. Key takeaways: ✔️ Always consider potential lurking variables that could influence your results. ✔️ Be cautious with aggregated data; sometimes the real insights lie in the subgroups. ✔️ Use visualizations to better understand the relationships within your data. The Wikipedia article on Simpson's Paradox offers this great visualization (en.wikipedia.org/wiki/Simpson%2…), emphasizing the importance of thorough analysis to avoid such pitfalls. This paradox underscores the necessity for data analysts to be meticulous in their work to prevent erroneous interpretations. For regular tips on data science, statistics, Python, and R programming, check out my free email newsletter! See this link for additional information: eepurl.com/gH6myT #StatisticalAnalysis #Python #RStats #Statistics #R
🇪🇺🤝🇮🇩 A new, game-changing chapter for the EU and Indonesia. We have finalised negotiations on a trade agreement that will open for EU exports a market of 280 million people to European businesses. We promised to diversify our partnerships. We are delivering ↓
Creating publication-ready plots in R is easier than ever with ggpubr. This extension for ggplot2 simplifies the process of generating clean and professional graphics, especially for exploratory data analysis and reporting. The attached visual, which I created using ggpubr, demonstrates its versatility. It includes a density plot with group comparisons (upper right), a boxplot with statistical significance annotations (lower left), and a grouped bar chart (lower right). These examples showcase how ggpubr helps streamline the creation of informative and visually appealing plots, perfect for presentations and publications. If you’d like to learn how to create publication-ready visualizations with ggpubr and other tools, join my online course, Data Visualization in R Using ggplot2 & Friends. In this course, you’ll learn how to design polished graphics like these step-by-step! Click this link for detailed information: statisticsglobe.com/online-course-… #Datavis #Datastructure #Rpackage #Data #Pythonlearning #tidyverse #Python #ggplot2 #RStats
The ggalign package in R brings flexibility to your visualizations by helping align multiple plots and incorporate complex hierarchical data structures, like dendrograms, alongside your primary charts. This extension of ggplot2 makes it easier to organize heatmaps with clustering and other detailed data views, all in a clean, cohesive layout. With ggalign, you can combine multiple plot types effectively, making it a powerful tool for exploring high-dimensional data. Here’s why it’s worth exploring: ✔️ Seamless Integration with ggplot2: Works alongside ggplot2 for consistent, customizable visuals. ✔️ Multi-Plot Alignment: Aligns heatmaps with other elements like dendrograms, gene annotations, or K-means clusters, as seen in this example, for clear, layered insights. ✔️ Enhanced Data Exploration: The ability to layer information enables users to observe patterns across different groupings, making it easier to spot relationships. In this visualization from the package website, ggalign combines a heatmap of gene expression data for various cell types, clustering information, and additional data panels for gene annotations, distribution, and K-means groupings. The heatmap uses a gradient from dark to light to show gene expression intensity, with accompanying panels for cell type and gene attributes, offering a comprehensive view of this complex data set. If you're interested in learning more about creating powerful visuals in R, check out my Data Visualization in R Using ggplot2 & Friends course. Take a look here for more details: statisticsglobe.com/online-course-… #RStats #ggplot2 #datasciencetraining #RStudio #datastructure
It's now incredibly easy to build calendar heatmaps! Thanks @joseph_barbier for your dayplot library! Documentation: josephbarbierdarnal.github.io/dayplot/tuto/a… If you like making charts with Python, come learn with us at matplotlib-journey.com!
Adding statistical metrics to your plots can transform your visualizations from basic to highly informative. With ggplot2 in R and its versatile extensions, incorporating features like p-values, confidence intervals, and regression lines becomes both straightforward and visually appealing. These are my top 5 packages for adding statistical metrics in ggplot2: 1️⃣ ggstatsplot: Combines statistical analysis and visualizations, displaying p-values, confidence intervals, and effect sizes directly on your plots. 2️⃣ ggpubr: Simplifies the process of adding p-values, statistical comparisons, and summaries to boxplots, bar charts, and more. 3️⃣ ggsignif: Adds significance brackets with p-values to plots like boxplots and bar charts, making statistical comparisons easy to interpret. 4️⃣ stat_poly_eq: Annotates regression equations, R² values, and p-values on scatter plots, ideal for showcasing relationships in linear models. 5️⃣ gghighlight: Highlights specific data points or groups in plots, drawing attention to key statistical trends or outliers while maintaining context. With these tools, integrating statistical insights into your ggplot2 visualizations becomes both effective and effortless. In the graph shown here, you can see examples of how these packages enhance your plots: a density plot with group means marked by vertical lines, a crowded line plot with selected series highlighted for clarity, a violin-boxplot hybrid with p-values annotated for group comparisons, and a scatter plot featuring a regression line, confidence intervals, and marginal histograms for added context. These enhancements demonstrate the power of ggplot2 extensions for making statistical insights visually accessible. If you’d like to learn how to use ggplot2 and these extensions, join my online course, Data Visualization in R Using ggplot2 & Friends. I’ll guide you step-by-step to create visualizations packed with statistical insights! Further details: statisticsglobe.com/online-course-… #ggplot2 #Rpackage #R #tidyverse #Pythonlearning #datavisualization #RStats #Python #datavis
Base R (cringe) vs. Tidyverse (based)
🚀 Working on collecting these awesome #rstats cheat sheets in one place! rforpoliticalscience.com/cheat-sheets-i…
How to download and graph interactive country maps in #Rstats with the leaflet package rforpoliticalscience.com/2025/02/02/how… #map
Examining women in the Irish Parliament PART 1: Scraping and cleaning data with the gender package. rforpoliticalscience.com/2025/01/31/how…
😍 Just discovered the #dataviz work of Colas Droin He's a researcher transitioning to data visualization, and just released a very nice piece of scrollytelling: colasdroin.github.io/snsf-dataviz/ Bonus point: he used the react-graph-gallery.com to learn how to use d3.js in React 😇
🍔 Stacking is dangerous in #dataviz. Is the green group increasing or decreasing? 🤔 It's so hard to tell (answer here shorturl.at/2hkno) Stacking is great if the main focus is on the whole. For single group evolution, use small multiple!
terence @researchremora
40K Followers 991 Following smitten with #rstats · the #rayverse's number one fan
Mike Denly @mikedenly
672 Followers 1K Following Assistant Professor @TAMU @BushSchool, conducting research on external validity and the political economy of development 🎾 ⚽️
Dalson Figueiredo @DalsonFigueired
29K Followers 5K Following https://t.co/HfkMbWKUt8 e https://t.co/MZXNsGzTqf e https://t.co/ZP1V7VobY3
Federico Trastulli @fedetrastulli
456 Followers 1K Following PoliSci Postdoc @UniLUISS. Parties/voters, esp. ideology/strategy, political conflict, social groups, left politics, class voting, gender/sexuality, inequality.
로키 @wpsejwjdc
0 Followers 25 Following
Aliasghar Soltani @SLTN_Aliasghar
11 Followers 165 Following
David C @DavidE67994694
4 Followers 46 Following
Shahzaib Jaffri @jaffri_sha6207
5 Followers 76 Following POLITICAL SCIENTIST........ DIPLOMACY, LOCAL AND GLOBAL POLITICS......
䷞ @oo0_oo000
1 Followers 5K Following
Political Jar @PoliticalJarX
10 Followers 662 Following Political Jar offers political infomation focusing on government, polticial theory and international relations.
ABASS SHITTU @abass_shit26302
64 Followers 1K Following
Beach and then @lixiomn89243594
35 Followers 1K Following
Ansgarius Manek @Richard_Manek
238 Followers 2K Following
Parvathy Sailesh @ParvathySailesh
3 Followers 24 Following PhD candidate, Lee Kuan Yew School of Public Policy @LKYSch, @NUSingapore
sebasperez999 @sebasperez65811
1 Followers 65 Following
Bushra Makhdoomi @Bushra2097b
0 Followers 18 Following
Matthew @MatthewBorrie
20 Followers 125 Following
NTABAKAYIKHONJWA @MpiloSiban38667
301 Followers 4K Following A good dancer leaves the stage early.. Orlando Pirates fan
Pavel Mahmood @Pavelkurd21
3 Followers 130 Following
LessonsFromChaos @Lessons_Chaos
5K Followers 5K Following Writer | Former Humanitarian Surgeon | Lessons from Chaos for Decision-Makers
Mihmed Sari @ele29wh
0 Followers 276 Following
Anushikha Sinha @AnushikhaSinha
0 Followers 63 Following
Sakza Nako @NakoSakza49801
1 Followers 36 Following
Joesph Senger @JoesphSeng18721
75 Followers 4K Following
ALPHONCE OYUGI @OyugiOyugi2
273 Followers 5K Following Care for Humanity, Clinical Researcher, Executive Member @KUMREC KU, Think globally, Act locally
Jane Bliznyuk @bliznyuk_jane
268 Followers 3K Following Sociologist, media expert, analyst. CEO & Founder of Ukrainian research company @GradusR.
Olivia Michiels @olivia_michiels
31 Followers 184 Following Poll Analyst @OvertonInsights | Communications Manager @Libertas | @Hillsdale alum | Views are my own
Sammy Duggasani @sammyduggasani
89 Followers 336 Following Senior @Harvard | Currently following how AI is shaping global elections
MSN @MSNALSOWAIDI
0 Followers 157 Following
hobo ⚔jha☠︎ @mb_1st_
6 Followers 35 Following Engineer. Society, Nature, Theology interests me #Mithila Likes/RTs ≠ endorsements
PandoraEdie @4tvh2AYyqnLKp
140 Followers 3K Following
Amar Lu @A_Mar_Anta
109 Followers 3K Following
陳廷瑄 @Ctxuan__
4 Followers 153 Following 🇹🇼 National Taiwan University 🏫 Department of Political Science
Essex Summer School -... @EssexSumSchool
3K Followers 1K Following Since 1967, the Essex Summer School in Social Science Data Analysis has provided social science methods training for hundreds of participants each year.
Dr. Abdul Qayoom Soho... @qayoomsohoo
2K Followers 6K Following Alumni #UMass | #IIUI | #NDU | #AIOU | #SALU |#NUML | #USindh. #Politics | #IR. US Foreign Policy | Politics of South Asia | Comparative Poli.
Nicholas Howard @ProfNHoward
657 Followers 1K Following Assistant Professor of Political Science @Concordia_MN. Legislatures, policy making, and sports - in no specific order.
Honorable Dor W. Gatk... @dor74436
43 Followers 444 Following Some were born in the time of Jesus, others in the era of Hitler. But I was blessed to live in the time of Raila. A man who taught a nation that hope never fade
Mahmud R congress man... @MahmudRk11
30 Followers 1K Following Student of political science from kaduna State University kasu
Rodrigo Palma @rodrigopalmacl
106 Followers 474 Following Biologo Marino. Libre pensador ni derecha ni izquierda ya desperte. Me gusta la naturaleza.
David Johnsick @DavidJohns91347
22 Followers 805 Following
Albert Rapp @rappa753
12K Followers 120 Following 🎓 Math PhD student & freelancer 👨🏫 Bite-sized insights on dataviz, web dev & data science with R at https://t.co/M34b5BzHTD
Cédric Scherer @CedScherer
24K Followers 2K Following Inactive account → find me on BlueSky and LinkedIn 🧙♂️✨📊 Independent #DataViz Consultant & Designer 👨🎓🌿🐗 PhD in Computational Ecology
R Markdown @rmarkdown
30K Followers 443 Following A community of R Markdown enthusiasts posting anything related to #RStats, especially #RMarkdown, #QuartoPub and #Bookdown.
Yan Holtz @R_Graph_Gallery
22K Followers 661 Following Software engineer who ❤️ #dataviz. Creator of https://t.co/sj29jZPkYr and the R, Python, D3 and React graph galleries. ➡️ https://t.co/PoJNeHXz8a 📈 🌊 🍺
We are R-Ladies @WeAreRLadies
30K Followers 169 Following Rotating Curator for the @RLadiesGlobal community #RLadies (currently on a brief break)
🦋 Tom Mock @thomas_mock
18K Followers 2K Following He/Him | Product Manager @posit_pbc👨💻 I ❤️ Data, 🌮, tables, Quarto, #tidyverse & #RStats | @themockup.blog on BlueSky
Milos @milos_gis
36K Followers 936 Following I teach you how to turn geospatial skills into products, portfolios, & client work. WORK WITH ME👇
Tyler Morgan-Wall @tylermorganwall
24K Followers 178 Following R, data science, dataviz, maps, raytracing. Developer of rayshader, rayrender, and the rayverse | PhD in Physics | @Penn
Paul Poast @ProfPaulPoast
103K Followers 431 Following Tweeting to teach. International Relations and Foreign Policy. @UChicago Prof. @ChicagoCouncil Fellow. @WPReview Columnist.
Mike Denly @mikedenly
672 Followers 1K Following Assistant Professor @TAMU @BushSchool, conducting research on external validity and the political economy of development 🎾 ⚽️
Emil Hvitfeldt @Emil_Hvitfeldt
6K Followers 619 Following Going dark until Twitter is a respectable place again.
R for the Rest of Us @rfortherest
22K Followers 180 Following You don’t need a PhD in statistics or years of coding experience to learn R, the most powerful tool for data analysis and visualization. Made by @dgkeyes.
Allison Horst @allison_horst
22K Followers 3K Following Data Scientist Advocate @ObservableHQ & teaching environmental data science @ucsantabarbara. Opinions mine. Data | Education | Art | Community. She / her.
Julian Garritzmann @garritzmannj
5K Followers 2K Following Professor of Political Science @goetheuni Frankfurt Find me at Bluesky: https://t.co/0xMGPiA6Ya
Pippa Norris @PippaN15
36K Followers 1K Following Political scientist at Harvard for three decades, Vice President of the World Values Survey, & founding Director of the Electoral Integrity Project.
EJPR journal @EJPRjournal
7K Followers 685 Following A journal from @ECPR and @CambridgeUP. We’ve moved to Bluesky — this account is now unmonitored. Come find us there! @ejprjournal.bsky.social
Antonio Sánchez Chin... @aschinchon
4K Followers 1K Following Preauricular sinus. Working at @MovistarPlus
R City Views @rcityviews
5K Followers 0 Following I tweeted stylized city maps made in #rstats using data from #OpenStreetMap, until pay‑per‑use was introduced.
Datawrapper @Datawrapper
27K Followers 615 Following Enrich your stories with charts, maps, and tables – interactive, responsive, and on brand. Questions? Write us: [email protected]
Data Visualization So... @DataVizSociety
79K Followers 308 Following We are dedicated to fostering community for data visualization professionals. Follow us on Bluesky: https://t.co/mQkiZ5ZPhd
Raphael Rashid @koryodynasty
56K Followers 1K Following Seoul-based journalist. SFCC 2nd VP. 라파엘 라시드 | 기자 | 서울외신기자클럽 제2부회장 | '우리가 보지 못한 대한민국' 저자 | 서울 거주. [email protected] / [email protected]
Hyung-jin Kim / 김�... @hyungjin1972
5K Followers 1K Following AP Seoul correspondent / AP통신 서울지국 특파원
The Blue Roof @BluRoofPolitics
18K Followers 721 Following The place for South Korean politics. Subscribe to TBR newsletter! https://t.co/VzqAydz3xe
Max Kim @maxsoeunkim
2K Followers 2K Following Reporting and writing for @nytimes. Ex-@latimes correspondent in Seoul. Tips: [email protected] | bluesky: @maxsoeunkim.bsky.social
Jeongmin Kim @jeongminnkim
32K Followers 2K Following Executive Director @southkoreapro @nknewsorg of Korea Risk Group • Previously @Reuters @CSIS • RT not endorsement
Laura Navarro @LauraNavarroSol
3K Followers 1K Following Periodista de datos y visual en @el_pais, antes en @hrw. Aprendí en @StorydataBcn. De Barna. 📊
Niall Harbison @NiallHarbison
574K Followers 1K Following On a mission to save street dogs around the world. You can support here...
Matthew B. Jané @MatthewBJane
7K Followers 812 Following PhD candidate at UConn. Meta-analysis and forensic meta-science.
Michael Spicer @MrMichaelSpicer
439K Followers 2K Following Listen to my show 'No Room' on BBC Radio 4. Come and see me on tour. I didn't pay for my checkmark. If I have DM'd you or blocked you, I'm sorry. I was hacked.
Pew Research Center @pewresearch
416K Followers 79 Following Nonpartisan, nonadvocacy data and analysis. Follow us on Instagram, Facebook and LinkedIn or subscribe to our newsletters: https://t.co/tawtYBr8Ef ✉️
Javier Corrales @jcorrales2011
12K Followers 247 Following Comparative Politics: I've been studying Latin America and the Caribbean for decades, and the region still manages to shock me.
Thomas Chadefaux @thomaschadefaux
3K Followers 3K Following Professor in Political Science @tcddublin | PI of ERC project PaCE @LabConflict @ERC_research. Conflict forecasting, machine learning, game theory.
UCDP @UCDP
4K Followers 289 Following Uppsala Conflict Data Program (UCDP) - the world's leading resource on peace and conflict data.
BISA Peacekeeping, Pe... @BISA_Peacekeep
1K Followers 264 Following Peacekeeping, Peacebuilding & Human Rights Working Group, British International Studies Association (@MYBISA). Facebook: https://t.co/gIADw3fygR
Journal of Peace Rese... @JPR_journal
7K Followers 341 Following Journal of Peace Research is an interdisciplinary and international bimonthly journal, covering scholarly work in peace research.
UppsalaPeaceConflict @UU_Peace
9K Followers 180 Following Department of Peace & Conflict Research @UppsalaUni Research, education, & policy relevance. Home of @UCDP @AlvamyrdalCNTR and @UURotaryPeace
Network of European P... @NEPS01
1K Followers 63 Following A network of scholars committed to the advancement of Peace Research in Europe.
PRIO @PRIOresearch
16K Followers 1K Following The Peace Research Institute Oslo conducts research on the conditions for peaceful relations among states, groups & people. 📩 Newsletter: https://t.co/3OwYfbN3K1
Favorite movie lines @TitlesInMedia
131K Followers 0 Following For when the title is said by a character in films, games or TV.
Kyungwon Suh @KyungwonSuh
793 Followers 480 Following Senior Lecturer @ANU_SDSC. Ph.D. @SUPoliSci. I study nuclear weapons, interstate coercion, alliance politics, and great power politics.
RTÉ Prime Time @RTE_PrimeTime
164K Followers 831 Following Prime Time is the flagship Current Affairs programme of Ireland's national broadcaster, RTÉ. Presented by @MiriamOCal, @FranMcNulty & @SarahAMcInerney
Houses of the Oireach... @OireachtasNews
48K Followers 1K Following Houses of the Oireachtas - Tithe an Oireachtais - Official Twitter account of the Irish Houses of Parliament - https://t.co/eurelBVQJ6
Effectiveness of Peac... @EffectivePOps
2K Followers 990 Following The Effectiveness of Peace Operations Network (#EPON), with support from its partners, @T4PAfrica, @NorwayMFA & @RCN_Norway, coordinated by @NUPInytt
chapter VII memes for... @dagshammer
485 Followers 1 Following that christmas tree mandate is lit af
Esme @hanseun02260787
11K Followers 6K Following Assist. Prof., Politics, Kyonggi Univ., S.Korea | Rutgers, PhD | Computational Political Science | Political Economy | Comparative Politics | Text as Data
Not the RTÉ News @notthertenews
35K Followers 1K Following Raidió Teilifís Éireann but 𝓼𝓮𝔁𝔂. Surprisingly, no affiliation with the actual RTÉ News. https://t.co/Ys9Sxld1MQ
yjea @yjeaorg
113 Followers 97 Following Young Journal of European Affairs The Student Journal of European Policy
AMEI @amei_mx_oficial
5K Followers 535 Following La Asociación Mexicana de Estudios Internacionales es una AC no lucrativa. Promueve y difunde los estudios sobre la realidad internacional.
David Isken @DavidIsken
86 Followers 949 Following 🇪🇺 | Historian & Political Scientist | Research on EU politics, deterrence, Southeastern Europe; Membership Manager @KFIBS_eV |🎾🎷🏰
Claudia Grisales @cgrisales
13K Followers 4K Following Congressional correspondent @NPR. Alum: @RTCACapitolHill panel, @starsandstripes @Statesman @NewhouseSU @UTAustin. 🤘🏼[email protected] or SignalCGri.01.
The Onion @TheOnion
10.6M Followers 13 Following America's Finest News Source. Get the paper delivered to your door: https://t.co/jJP2Apbhe8. Signup for The Onion newsletter https://t.co/koxBGNkhqO
Claudia Pfeifer Cruz @claudiapfeiferc
60 Followers 70 Following Researcher @SIPRIorg. PhD Political Science/IR @GVAGrad. Working on peace operations, data and trends, and human rights
National Democratic I... @NDI
62K Followers 3K Following The National Democratic Institute (@NDI) is a nonprofit, nonpartisan organization working for democracy and making democracy work worldwide.
NEDemocracy @NEDemocracy
55K Followers 2K Following The National Endowment for Democracy is a private, nonprofit foundation dedicated to the growth and strengthening of democratic institutions around the world.
Journal of Democracy @JoDemocracy
26K Followers 933 Following The Journal of Democracy: The smartest analysis on democracy and authoritarianism around the world. RT ≠ endorsement.
DG MEME 🇪🇺 @meme_ec
142K Followers 150 Following The Directorate-General for #Memes and #Satire Book: https://t.co/DWcDEnkwor Store: https://t.co/yvWXOdbTSZ Not an official EU page!
CIJ_ICJ @CIJ_ICJ
255K Followers 84 Following Compte officiel de la Cour internationale de Justice (CIJ, ONU) - Official account of the International Court of Justice (ICJ, UN)
Foreign Policy @ForeignPolicy
1.3M Followers 1K Following The magazine for global politics, economics, and ideas | Sign up for our newsletters: https://t.co/vasoTyI0NR
European Commission @EU_Commission
1.9M Followers 563 Following News and information from the European Commission. Social media and data protection policy: https://t.co/Gz53NetzFm

























