andkov / Longitudinal_Models_of_Religiosity_NLSY97

Analyzing the trends of religious involvement during adolescence and young adulthood in the NLSY97 national household sample
4 stars 1 forks source link

Removing missing values from ggplot #4

Closed andkov closed 10 years ago

andkov commented 10 years ago

https://github.com/andkov/Longitudinal_Models_of_Religiosity_NLSY97/blob/master/Scripts/Questions/current%20question.R

How to suppress the use of NA values in graph production without subsetting data in the data step?

wibeasley commented 10 years ago

See if my edit does it.

http://docs.ggplot2.org/0.9.3.1/geom_point.html

wibeasley commented 10 years ago

https://github.com/andkov/Longitudinal_Models_of_Religiosity_NLSY97/commit/9eef8ff69a98f8092d09109e925cb65089c3db7a#commitcomment-6750355

I think there are some geoms/stats that don't respect it. I guess this is one of them.

andkov commented 10 years ago

Solved and demonstrated here: http://stackoverflow.com/questions/24344820/remove-missing-values-from-frequency-distributions-in-ggplot/24344964#24344964