smuckerzjelly / Titantic_Kaggle_Practice

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

ggplot Error: "Mapping must be created by `aes()` or `aes_()`" #1

Open smuckerzjelly opened 7 years ago

smuckerzjelly commented 7 years ago

I have the aes() argument within the ggplot function unsure as to why I am still getting this error.

sita-aghasoy33 commented 4 years ago

Could you, please, enter the full code?

sita-aghasoy33 commented 4 years ago

print(ggplot(movies, aes(x=rating)) + (geom_histogram(binwidth = 0.01, color='green', fill='light green'))

By the way, it is mine that was run successfully. I also faced the above-mentioned problem, but I could get rid of it by correcting my mistake - changing "," by "." in:

binwidth = 0.01.

So simple. The only problem was this little dot. Good luck to you. If there is still an error message, you can ask me further. I will do my best. :)

sabrinapc commented 3 years ago

I'm having the same error message and I don't understand what I am doing wrong. My code looks like this:

stream_data %>% ggplot()+ geom_point(aes(x = datetime, y = nitrate)) + geom_hline(epa_limit)+ theme_bw()