Articles by Layton R blog

Introducing formatdown

November 20, 2022 | Layton R blog

Summary Convert the elements of a numerical vector or data frame column to character strings in which the numbers are formatted using powers-of-ten notation in scientific or engineering form and delimited for rendering as inline equations...
[Read more...]

Multiple studies, one chart

September 4, 2022 | Layton R blog

Summary I redesign a grouped-bar chart to attempt to better align the logic of the display with the logic of the argument. The redesigned chart provides better visual access to year-by-year comparisons by different combinations of categor...
[Read more...]

Spiders, facets, and dots, oh my!

August 20, 2022 | Layton R blog

Summary I compare the effectiveness of two charts—a radar (or spider) chart and a faceted dot chart—in communicating information about Burtin’s 1951 antibiotics/bacteria data. The faceted dot chart is more effective, suggesting in general...
[Read more...]

Revisiting a lying chart

May 26, 2022 | Layton R blog

Summary I critique and correct a well-known visual lie from a 2015 Congressional hearing in which the authors abuse chart-making conventions to serve their rhetorical goals. I explore what authentic stories these data tell and what authen...
[Read more...]

Facets that are not small multiples

March 8, 2022 | Layton R blog

Summary For data structures having two categorical variables and one quantitative variable, this post illustrates how category independence or dependence influences chart design. Graphs with independent categories (multiway data) are easi...
[Read more...]

Survey data I/O with likert

February 12, 2022 | Layton R blog

Summary Given Likert-style survey data in one of three common forms, I shape the data to suit the input requirements of the likert R package and use the output to create 100% stacked-bar charts. In each case, I illustrate two routine revi...
[Read more...]

Survey data chart designs

February 11, 2022 | Layton R blog

Summary I reconstruct three alternative chart designs for Likert-style survey data from a 2018 post by Lisa Charlotte Muth and Gregor Aisch and share the source data and my R code. Comparing the charts in light of their arguments, I agree...
[Read more...]

Plot the variable of interest

February 2, 2022 | Layton R blog

Summary I redesign a stacked-bar chart to attempt to better align the logic of the display with the logic of the argument. The visual structure of the redesigned chart suggests a concomitant reorganization of the prose, illustrating the i...
[Read more...]

Stacked-bar alternatives

January 13, 2022 | Layton R blog

Summary The rhetorical shortcomings of stacked-bar charts are overcome using alternative designs better suited for making visual comparisons. Both examples start as stacked-bar charts but end as different types, based on the variables to ...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)