The pipe operator (|>) offers a way to write cleaner and more readable code in R, and many are familiar with piping objects into functions. However, creating interactive graphs with plotly package is less straightforward than most cases.
When you try to pipe a ggplot2 object directly into ggplotly() from the plotly packge without storing it in a variable or using curly braces, you will encounter an error. This happens because the pipe operator passes the output of the left-hand side expression as the first argument to the function on the right-hand side.
Read More…
Review articles remain an important part of academic publishing, offering overviews of the current state of knowledge, synthesising research trends, or critically engaging with key debates. Political science journals feature a variety of article types that fall under this broad category, including state-of-the-field reviews, literature surveys, and review essays. These formats provide scholars with an opportunity to summarise key developments, highlight gaps in the literature, and propose directions for future research.
Read More…
Replication studies play a critical role in advancing knowledge and ensuring the robustness of findings. Some journals are increasingly recognising this by introducing dedicated article categories for replication studies. These categories provide a clear pathway for researchers to share their work replicating and scrutinising existing studies, fostering transparency, and improving the reliability of published research.
At least seven political science journals now publish a specific article type for replication studies.
Read More…
Some political science journals now publish a dedicated article type for data. These publications — often referred as Data Notes bu the terminology does vary across journals — serve to highlight new datasets, document their construction, and support data sharing within the research community. For instance, Electoral Studies describes their data notes as follows:
These … are designed to promote, describe, and demonstrate the potential of data sources that could interest Electoral Studies readers.
Read More…
Update (November 2024): Since the publication of this blogpost, Twitter has revised its API access policies, and it is no longer freely accessible in the same way it once was. As a result, some of the workshop slides are now out of date.
Slides | All course materials
Earlier this month, I taught my two-day course on working with Twitter data in R, at the University of Lucerne. This was part of a Master’s Programme in Computational Social Science, LUMACSS.
Read More…
Click here for the slides, and here for all the course materials.
I recently organised a short course on web scraping in R, as part of a Master’s Programme in Computational Social Science, at the University of Lucerne.
I have built a website and a Shiny app just for this course, to facilitate learning. These are tailored for the exercises in the course.
You can find other course material at GitHub.
Read More…
It would be great if the psjournals app included information on turnaround times and acceptance rates in political science journals. This is one of the most common requests that I receive from its users, and I could not agree more.
These statistics are unfortunately unavailable for many journals.
The ones published by Taylor & Francis are now a welcome exception. The publisher has recently started to provide statistics on journal turnaround times and acceptance rates on its website — in separate sections for individual journals.
Read More…
In many democracies, members of parliaments are allocated publicly funded allowances to communicate with their constituents. These allowances are intended to strengthen democratic engagement by fostering a closer connection between the electorate and their representatives. But how effective are these funds in achieving this aim?
Insights from the UK House of Commons
My recent publication, Parliamentary Communication Allowances: Good for Nothing?, explores the impact of these allowances in the UK House of Commons on electoral outcomes.
Read More…
In many democracies, members of parliaments are allocated publicly funded allowances to communicate with their constituents. These allowances are intended to strengthen democratic engagement by fostering a closer connection between the electorate and their representatives. But how effective are these funds in achieving this aim?
Insights from the UK House of Commons
My recent publication, Parliamentary Communication Allowances: Good for Nothing?, explores the impact of these allowances in the UK House of Commons on electoral outcomes.
Read More…
Together with Lucy Kinski, we are organising a new online seminar series on political representation: 𝙍𝙚:𝗣𝗿𝗲𝘀𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻𝘀!
The series aspires to facilitate an inclusive, supportive, and dynamic environment in which scholarly work on anything related to representation can be presented and discussed.
Each online seminar will consist of a 30-minute presentation, followed by meaningful opportunities for the audience to be involved in the discussion.
You can propose a presentation and register for events on the website of the series.
Read More…