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

Problems creating a Waffle chart from an R script

I am testing the Waffle package in R (https://github.com/hrbrmstr/waffle), I am using R version 3.2.2 (32 bits) under Microsoft Windows 10, and I am having problems when I want to plot a Waffle chart from an R script. If I plot a Waffle chart…
0
votes
0 answers

Why does the colorchooser from tkinter only run once in python?

I am trying to get 5 color inputs from the user and display them in blocks using waffle, but the colorchooser runs only once and the code is stuck after closing the colorchooser. import matplotlib.pyplot as plt from pywaffle import Waffle from…
Prixya
  • 1
  • 3
0
votes
0 answers

Power BI Waffle Chart - How to add svg path for custom icon

In the waffle chart visual I want to use an image of a house instead of the default circle shape. It looks like you can change the shape to be displayed by providing an svg path in a table, but i haven't managed to get anything to work and don't…
GlassShark1
  • 153
  • 1
  • 13
0
votes
1 answer

How to display country flags on waffle chart symbols? (using, e.g,. `ggwaffle`)

I would like to create a waffle chart and use country flags in place of squares. Here is my current attempt using ggwaffle: library(ggplot2) library(emojifont) library(ggwaffle) iris2 <- iris iris2$Species <- c("", "", "") waffle_data <-…
rempsyc
  • 785
  • 5
  • 24
0
votes
0 answers

Increase spacing between legend items in ggplot2

I need to increase the white space between the legend items in below graph, therefore I need white space between the red square Man row and the blue square Woman row. This question has been asked before on here and all answers seem to recommend…
luciano
  • 13,158
  • 36
  • 90
  • 130
0
votes
1 answer

Legend label Heatmap Plotly

I am trying to build a waffle chart out of a heatmap in Plotly. Code is working well, but now instead of having a legend based on the numerical data, I want to show the text ( i.e Moderate distance to target" instead of 2). Any idea how to move…
diana
  • 3
  • 1
0
votes
0 answers

Using waffle charts (ggplot2) and I would like to include fraction of a proportion

Using waffle charts (ggplot2) to show proportions of the total (where the total is percentage (100)). Can I include fraction of a percent. I would also like (if possible) to set these up in a row rather than in a column as I want to put others…
desperate
  • 1
  • 1
0
votes
0 answers

Add geom_text to waffle chart with ggplot2

With the following code, I used waffle package to generate a waffle chart library(tidyverse) library(waffle) df <- structure(list( parts = c("case_1", "case_2", "case_3"), values = c(11, 34, 55) ), row.names = c(NA, -3L), class = c("tbl_df",…
Zhiqiang Wang
  • 6,206
  • 2
  • 13
  • 27
0
votes
2 answers

Error when creating waffle chart - object cannot be coerced

Attempting to make a simple waffle chart with the below vector pie: rideable_type number_of_trips 1 Classic 58 2 Electric 36 3 Docked 6 The function I am…
nbar204
  • 43
  • 5
0
votes
1 answer

How to create waffle chart?

I need to create a waffle chart that should show the percentage coverage of my project's data. We are using JasperReports, but unfortunately I couldn't find how to implement the report's design like this: Maybe someone faced something similar?
Arty Mart
  • 1
  • 2
0
votes
1 answer

ordering facet_wrap levels by frequency

I'm trying to do a waffle chart for the championships won by F1 drivers so far. The chart comes out good but it comes out with alphabetical labels. I want it to start from the most titles won to the least. I've tried ordering and fct_relevel. But…
Pavan
  • 27
  • 5
0
votes
1 answer

Assign hexcode to color for factor in a dataframe

data dput data subset which looks like this head(d2) drug_id drug_name synonyms Pathway 1 1559 Luminespib AUY922,…
PesKchan
  • 868
  • 6
  • 14
0
votes
1 answer

waffle graph icon in R

I made a waffle graph, showing that 5 out of 9 people are have training, but is it possible to somehow change the square icon to a stickman? This is my code: course <- read.csv("courses.csv") courseES <- filter(course, GEO == "Ireland") notparti…
Hena
  • 71
  • 5
0
votes
1 answer

Make legend symbols smaller than default in R waffle plot

I have a two-part waffle plot with a lot of little squares, and a legend that contains two squares. I would like to make the sizes of all of these squares to be the same. There was an issue opened on GitHub about this, and the repo owner said that…
brienna
  • 1,415
  • 1
  • 18
  • 45
0
votes
1 answer

How to make a faceted waffle chart, filling each bin from top left

I'm trying to create a 3x4 grid of bins with a count of observations from my data in each bin. I'm halfway there: library(ggplot2) type <- c('daily', 'daily', 'habit', 'habit', 'habit', 'seasonal', 'seasonal', 'year-long', 'year-long', 'year-long',…
braden
  • 79
  • 7