I have a dataset of passwords that looks like this:
My goal is to make a graph that accurately showcases the strength of each category so my initial plan was to group the data by category and calculate the average strength like this:
then represent the data with a barplot like this one:
My problem with this is that when I looked up the cardinality of each category I noticed that the number of data points is very different as seen here below:
So I thought that calculating the average blindly and making a barplot isn't very faithful to the data because of two reasons. First, you can't see the number of data points in a bar plot; secondly, you can't see the outliers that would immensely affect the mean, especially when you have a very small number of data points in certain categories. So I decided to try and make a boxplot instead as seen here:
But my problem with this is that a boxplot is more complicated for the average person than a simple barplot, even if it's more faithful to the dataset.
What do you guys think is better? A barplot or a boxplot? Is there any alternative that is simple and faithful to the dataset I described?
EDIT: First of all here is the variables concerned in the dataset for you guys to see the data :
> dput(passwords[c(3,8)])
structure(list(category = c("password-related", "simple-alphanumeric",
"simple-alphanumeric", "simple-alphanumeric", "simple-alphanumeric",
"simple-alphanumeric", "animal", "sport", "sport", "password-related",
"animal", "simple-alphanumeric", "simple-alphanumeric", "cool-macho",
"name", "cool-macho", "cool-macho", "name", "simple-alphanumeric",
"simple-alphanumeric", "name", "name", "cool-macho", "simple-alphanumeric",
"cool-macho", "simple-alphanumeric", "cool-macho", "cool-macho",
"name", "name", "name", "sport", "name", "password-related",
"password-related", "cool-macho", "sport", "name", "name", "name",
"name", "fluffy", "fluffy", "name", "simple-alphanumeric", "food",
"name", "password-related", "simple-alphanumeric", "simple-alphanumeric",
"name", "name", "nerdy-pop", "fluffy", "name", "sport", "sport",
"simple-alphanumeric", "name", "simple-alphanumeric", "simple-alphanumeric",
"name", "fluffy", "rebellious-rude", "rebellious-rude", "nerdy-pop",
"cool-macho", "cool-macho", "name", "fluffy", "name", "cool-macho",
"fluffy", "cool-macho", "name", "name", "simple-alphanumeric",
"nerdy-pop", "name", "simple-alphanumeric", "sport", "food",
"fluffy", "name", "name", "name", "name", "fluffy", "fluffy",
"animal", "rebellious-rude", "simple-alphanumeric", "cool-macho",
"cool-macho", "cool-macho", "name", "nerdy-pop", "animal", "fluffy",
"name", "cool-macho", "name", "fluffy", "cool-macho", "animal",
"simple-alphanumeric", "name", "animal", "cool-macho", "name",
"cool-macho", "fluffy", "sport", "fluffy", "name", "simple-alphanumeric",
"cool-macho", "name", "fluffy", "sport", "name", "nerdy-pop",
"nerdy-pop", "rebellious-rude", "cool-macho", "name", "password-related",
"name", "sport", "sport", "animal", "cool-macho", "simple-alphanumeric",
"password-related", "name", "name", "cool-macho", "cool-macho",
"name", "nerdy-pop", "food", "fluffy", "name", "animal", "simple-alphanumeric",
"password-related", "name", "cool-macho", "nerdy-pop", "nerdy-pop",
"name", "name", "cool-macho", "password-related", "name", "name",
"sport", "food", "cool-macho", "animal", "sport", "cool-macho",
"animal", "password-related", "name", "name", "name", "cool-macho",
"name", "sport", "nerdy-pop", "name", "name", "animal", "cool-macho",
"name", "sport", "nerdy-pop", "cool-macho", "name", "name", "sport",
"rebellious-rude", "cool-macho", "name", "name", "name", "cool-macho",
"fluffy", "sport", "name", "nerdy-pop", "simple-alphanumeric",
"name", "rebellious-rude", "sport", "nerdy-pop", "simple-alphanumeric",
"name", "animal", "simple-alphanumeric", "sport", "name", "simple-alphanumeric",
"name", "name", "simple-alphanumeric", "name", "fluffy", "name",
"cool-macho", "name", "fluffy", "rebellious-rude", "sport", "name",
"fluffy", "name", "name", "fluffy", "name", "name", "fluffy",
"name", "name", "name", "name", "nerdy-pop", "cool-macho", "cool-macho",
"name", "food", "rebellious-rude", "name", "sport", "name", "cool-macho",
"name", "nerdy-pop", "name", "name", "fluffy", "fluffy", "fluffy",
"name", "food", "animal", "name", "name", "sport", "name", "name",
"name", "name", "name", "sport", "sport", "name", "name", "name",
"name", "simple-alphanumeric", "name", "fluffy", "cool-macho",
"sport", "name", "name", "name", "password-related", "password-related",
"fluffy", "name", "nerdy-pop", "cool-macho", "animal", "simple-alphanumeric",
"simple-alphanumeric", "animal", "name", "name", "fluffy", "food",
"fluffy", "fluffy", "simple-alphanumeric", "simple-alphanumeric",
"name", "name", "name", "name", "simple-alphanumeric", "name",
"nerdy-pop", "cool-macho", "name", "cool-macho", "cool-macho",
"rebellious-rude", "animal", "cool-macho", "name", "food", "animal",
"simple-alphanumeric", "fluffy", "name", "animal", "fluffy",
"sport", "simple-alphanumeric", "name", "name", "sport", "simple-alphanumeric",
"simple-alphanumeric", "food", "name", "animal", "password-related",
"nerdy-pop", "cool-macho", "name", "cool-macho", "simple-alphanumeric",
"name", "name", "cool-macho", "cool-macho", "password-related",
"name", "name", "nerdy-pop", "name", "name", "nerdy-pop", "cool-macho",
"food", "fluffy", "name", "name", "name", "name", "simple-alphanumeric",
"cool-macho", "name", "name", "animal", "fluffy", "cool-macho",
"cool-macho", "simple-alphanumeric", "simple-alphanumeric", "name",
"name", "animal", "animal", "cool-macho", "nerdy-pop", "sport",
"sport", "name", "sport", "animal", "simple-alphanumeric", "name",
"nerdy-pop", "simple-alphanumeric", "fluffy", "cool-macho", "animal",
"simple-alphanumeric", "cool-macho", "simple-alphanumeric", "name",
"fluffy", "fluffy", "cool-macho", "name", "name", "cool-macho",
"cool-macho", "name", "cool-macho", "name", "name", "cool-macho",
"name", "cool-macho", "name", "sport", "name", "name", "name",
"simple-alphanumeric", "cool-macho", "name", "name", "name",
"fluffy", "name", "name", "simple-alphanumeric", "fluffy", "fluffy",
"sport", "simple-alphanumeric", "name", "name", "simple-alphanumeric",
"name", "name", "cool-macho", "simple-alphanumeric", "cool-macho",
"fluffy", "sport", "rebellious-rude", "cool-macho", "name", "simple-alphanumeric",
"nerdy-pop", "cool-macho", "animal", "name", "cool-macho", "cool-macho",
"simple-alphanumeric", "name", "simple-alphanumeric", "cool-macho",
"cool-macho", "cool-macho", "name", "name", "name", "animal",
"fluffy", "cool-macho", "name", "nerdy-pop", "name", "name",
"sport", "name", "nerdy-pop", "sport", "name", "name", "sport",
"fluffy", "name", "cool-macho", "simple-alphanumeric", "cool-macho",
"animal", "nerdy-pop", "nerdy-pop", "simple-alphanumeric", "name",
"name", "name", "simple-alphanumeric", "cool-macho", "animal",
"fluffy", "animal", "name", "name", "name", "name", "name", "simple-alphanumeric",
"cool-macho", "name", "cool-macho", "name", "simple-alphanumeric",
"fluffy", "rebellious-rude", "name", "nerdy-pop", "name", "name",
"name", "sport", "name", "food", "name", "simple-alphanumeric",
"name", "cool-macho", "name", "nerdy-pop", "cool-macho", "cool-macho",
"name", "nerdy-pop", "name", "password-related"), strength = c(8,
4, 4, 4, 8, 4, 8, 4, 7, 8, 8, 1, 32, 9, 9, 8, 8, 9, 0, 0, 8,
10, 8, 4, 8, 25, 7, 8, 8, 6, 7, 6, 7, 4, 3, 6, 8, 6, 9, 8, 8,
6, 9, 7, 4, 0, 8, 3, 4, 4, 8, 6, 8, 8, 7, 5, 7, 7, 8, 0, 4, 6,
8, 7, 7, 10, 6, 9, 8, 7, 8, 6, 6, 8, 8, 8, 0, 8, 7, 1, 8, 5,
8, 8, 8, 9, 8, 8, 6, 7, 7, 5, 8, 7, 7, 8, 8, 8, 9, 8, 8, 9, 7,
7, 9, 0, 8, 8, 9, 8, 10, 6, 7, 8, 8, 1, 7, 8, 9, 8, 8, 6, 6,
9, 8, 8, 8, 7, 8, 7, 8, 7, 8, 7, 7, 6, 8, 9, 7, 8, 3, 0, 6, 7,
0, 8, 7, 8, 46, 8, 6, 9, 8, 8, 6, 8, 6, 0, 9, 8, 8, 6, 6, 6,
8, 8, 7, 7, 6, 5, 8, 7, 7, 7, 8, 8, 8, 8, 8, 8, 7, 8, 7, 7, 7,
8, 6, 9, 6, 8, 0, 8, 0, 8, 2, 8, 46, 6, 8, 9, 9, 8, 8, 8, 8,
9, 0, 8, 7, 6, 6, 9, 8, 8, 7, 6, 8, 6, 8, 8, 8, 9, 7, 9, 8, 8,
5, 8, 8, 6, 9, 6, 6, 7, 6, 8, 8, 7, 8, 6, 8, 8, 7, 4, 8, 6, 7,
8, 8, 9, 6, 7, 6, 8, 5, 8, 9, 9, 7, 8, 1, 0, 7, 8, 9, 8, 6, 7,
8, 7, 6, 7, 7, 19, 6, 8, 8, 0, 7, 8, 6, 4, 7, 7, 7, 0, 0, 5,
6, 8, 9, 0, 10, 9, 8, 7, 9, 2, 5, 7, 7, 8, 6, 6, 10, 7, 4, 10,
9, 6, 4, 6, 8, 8, 1, 4, 5, 8, 9, 8, 38, 6, 8, 0, 0, 7, 6, 5,
6, 6, 8, 8, 9, 5, 6, 48, 3, 4, 8, 9, 6, 7, 4, 35, 7, 7, 8, 7,
6, 6, 8, 0, 0, 5, 6, 9, 6, 7, 36, 6, 8, 3, 5, 7, 0, 7, 8, 4,
7, 7, 7, 0, 7, 0, 7, 4, 9, 8, 7, 8, 10, 9, 6, 6, 7, 4, 3, 7,
10, 6, 7, 6, 6, 7, 36, 6, 4, 10, 5, 5, 7, 8, 0, 6, 7, 34, 21,
8, 8, 0, 5, 7, 3, 4, 7, 7, 8, 8, 7, 5, 0, 8, 9, 9, 8, 8, 6, 7,
7, 4, 8, 8, 8, 9, 8, 9, 6, 4, 9, 6, 7, 8, 7, 8, 8, 7, 8, 8, 4,
10, 8, 9, 7, 4, 8, 8, 7, 8, 0, 6, 8, 7, 32, 6, 7, 4, 6, 8, 4,
7, 7, 9, 0, 8, 8, 8, 8, 36, 6, 8, 8, 8, 8, 6, 8, 7, 8, 6, 6,
0, 7, 8, 7, 7, 7, 6, 9, 7, 7, 28)), row.names = c(NA, -500L), class = c("tbl_df",
"tbl", "data.frame"), na.action = structure(501:507, .Names = c("501",
"502", "503", "504", "505", "506", "507"), class = "omit")
here is the boxplot I made after taking some of your suggestions. What do you think I should change?