I am putting together a geom_density to express drug use in a population along with an "Age" distribution. I would like to omit the "No" variable response (which is embedded with other answers in the column of N =597) from being expressed in the chart.
I've looked around at Boolean syntax possibilities but found no clear grammar examples to fit this context. I reviewed ? help documentation and could not locate a ready example on how to omit values from a chart.
drugs <- Substance_use_self_report
ggplot(drugs, aes(Age, fill = drug_of_choice)) +
geom_density(alpha = 0.25)
In the Drug_of_choice
column of my dataset, the field is overfitted with No
response cells. I would like to omit those cells from being expressed in the chart. (So we can see what drugs people like, without the "no" blob in there!) :)