I have a set of data and I want to take a subset of it, then graph it using the geom_density function. When I filter the range from -3 to 3, the resulting graph is larger than 1. I would like to show the percentage of the data that is represented by a score of 0 within this range. Is there a way to do this with geom_density function?
score %>%
filter(zscore <3, zscore > -3) %>%
ggplot(aes(x=zscore)) +
theme_bw()