smuckerzjelly / Titantic_Kaggle_Practice

Getting familiar with R by doing Kaggle's "Survival on the Titanic"
0 stars 0 forks source link

`stat_bin()` using `bins = 30`. Pick better value with `binwidth`. Error: stat_bin requires the following missing aesthetics: x #2

Open sidra-Ravian opened 4 years ago

sidra-Ravian commented 4 years ago

hi, i am new to R studio. i am trying to make multiple graphs in layout format. i have created qq plot using ggplot. now i wan to create histogram using ggplot. but i am recieving this error and couldnt able to resolve it. please help me through this. lookFrame is my database and Diameters is my colum name. p5<-ggplot(lookFrame,mapping = aes(soo=Diameters))+geom_histogram(color="aquamarine3")+stat_bin(binwidth = 30)