Hey all I have a dataset called features of 2100 images of letters, numbers and mathematical functions, there are many columns in this dataset including 'height' and 'width' I am trying to create a histogram that represents the heights of these images when they are a mathematical function. And another histogram when they are numbers or letters.
The variable is.mathtrue is a Logical variable, it prints TRUE when the images are a mathematical symbol, and prints FALSE when they are numbers or letters.
p3 <-ggplot(features, aes(height)) +
geom_bar() +
ggtitle("A histogram of when height is mathematical")
p3
I am able to create a histogram of all of the 'height' but I am unsure how to use my is.mathtrue variable to get the histogram to only represent the mathematic symbols.
Any help on this would be great as I'm rather lost.
Thanks.