Questions tagged [waffle-chart]

A waffle chart (also known as a "square pie chart") is a type of data visualization that presents quantities as proportions of a rectangular grid.

Description

A waffle chart (also known as a "square pie chart") is a type of data visualization that presents quantities as proportions of a rectangular grid. This method of presentation can be better at presenting proportional data than a standard pie chart, as the grid structure helps viewers compare the proportion of each category more precisely.

Tools for producing waffle charts exist for programming languages/packages such as , , and . This tag should be used for any questions involving the formatting and/or implementation of these plots.

Implementations

PyWaffle, for Python

The waffle package for R

Additional Resources

  • An RBlogger post introducing the waffle package
  • Examples of waffle charts made using D3
72 questions
1
vote
1 answer

Why do some waffle chart glyphs work but not others?

I have installed fontawesome ttfs onto my local machine and loaded them into R. When I test this using fonts()[grep("Awesome", fonts())] it returns "FontAwesome" as expected. I can run a waffle chart with certain glyphs... so far male, female, and…
Lstar
  • 56
  • 6
1
vote
2 answers

Waffle plot does not show one group

I have the following graph using library(waffle) My problem is that the last name group does not appear. the code that I am using is the following counts<-c(135.92, 15.98, 14.97, 14.15, 5.82, 11.82, 0.07 ) counts_names<-sprintf("%s (%s)", c("Coal",…
Eve Chanatasig
  • 397
  • 2
  • 10
1
vote
1 answer

Waffle chart with 2 categories and raw counts fills out final column with a mysterious 3rd category of made up data

I'm trying to make a waffle chart of raw counts and only two categories. For some reason it makes up enough counts of a mysterious 3rd category to fill out the final column. With three or more categories the final column is partially filled as I…
Chris Hamson
  • 219
  • 1
  • 2
  • 6
1
vote
0 answers

Python Data Visualization (plot, chart) with multiple squares

I'd like to reproduce charts consisting of multiple squares representing a value like this one from xkcd: https://xkcd.com/radiation/ I tried to do it by hand in matplotlib, but it seems too cumbersome. Do you know any library or easy to use code to…
1
vote
1 answer

Is there an R function to use waffle charts with two glyphs? One to the left and one to the right?

I would like to 'merge' these two waffle charts: waffle(pct, rows = 5, use_glyph = "angle-left", glyph_size = 9, colors = c("grey", adjustcolor("green", alpha.f = 0.0)), title = "Motoraccidents in bends", xlab = "1 bike = 1% of all…
pkalmijn
  • 21
  • 4
1
vote
0 answers

Making Percentage Bar Map

I'm sorry I don't know what to call these kind of chart. I've already made a square grid map, rectangle located on every centroid. (pic 1) Pic 1 Now I want to make like a percentage map (isotype?), but I don't know how to do it. (pic…
louislugas
  • 147
  • 6
1
vote
0 answers

D3 visual - quasi waffle plot but not contiguous

I am trying to trying to replicate the example image enclosed but via d3 specifically Ideally i am trying to find a d3 template online that is similiar to this and use it and bend it from there I wish to have a list of cities, and then each row…
TexasTom
  • 309
  • 1
  • 2
  • 6
1
vote
0 answers

Unit / pictograph chart in R

I am making a unit/ symbol chart in R that should look like almost a waffle chart with spacing between each category. In my chart, each bar has a fixed number of rows and an arbitrary number of columns. My main issue is with a spacing between the…
Sergey
  • 11
  • 1
1
vote
0 answers

Need help to make my waffle chart responsive

I am creating a waffle chart with d3.js and I want to make it responsive to screen size. The way I am doing is I have a fixed size for each rectangle and I don't know how to change the size in response to the screen size. I have tried it with two js…
longhui
  • 13
  • 5
1
vote
1 answer

Creating Waffle Charts with Matplotlib using the PyWaffle module and FontAwesome

I am trying to use PyWaffle (https://github.com/ligyxy/PyWaffle) to plot waffle charts. I have installed the module and I have installed the fontawesome fonts (https://fontawesome.com/?from=io) that are used by PyWaffle. I then run the following…
user8270077
  • 4,621
  • 17
  • 75
  • 140
1
vote
1 answer

Waffle plot with decimal numbers

When you have values <1 in a waffle plot they won't display. library(waffle) wp<-waffle(c(10,25,25,1,0.05,0.5,30,7.5,0.95), rows=10, colors=c("#CC0000", "#006600", "#669999", "#00CCCC", "#660099",…
GISHuman
  • 1,026
  • 1
  • 8
  • 27
1
vote
1 answer

Waffle & font family not found in Windows font database

I am trying to get the folowing code to work so that it will display the glyph medkit or any other icons from the FontAwesome font inside my waffle plot. library(waffle) library(extrafont) font_import() loadfonts(device = "postscript") which…
1
vote
1 answer

Problems to install waffle package

I'm trying install the waffle package but i'm not having sucess. When i do require, the folowwing message appers to me: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called…
1
vote
1 answer

ggplot increase size of waffle chart

I have a waffle chart which looks like this: using this code: output$DS47<- renderPlot({ plot_tab6<-waffle(DS27$Prozent, rows=11) mydata <- c('Auslandsstudium'=57, 'Auslandspraktikum'= 30, 'Sprachkurs'=5, 'Studienreise'=11,…
FragenSteller
  • 61
  • 1
  • 9
1
vote
0 answers

Use Python to create chart with single shape/image per data point

I want to create a chart that illustrates the count of a given binary variable using a single shape for each data point, and uses color to indicate if the value is 0 or 1. The chart below shows an example similar to what I'm looking for. The only…
BirdLaw
  • 572
  • 6
  • 16