데이터분석/Code & Tools & Script Snippet

Error in plotting with ggplot

늘근이 2018. 5. 27. 20:14

Error: stat_count() must not be used with a y aesthetic.

ggplot(ah, aes(x=Var1, y=Freq)) + geom_bar(stat = "identity")

add stat=identity


Error in -freq : invalid argument to unary operator

multiline problem


if case of not working well, use aes method to the inside of ggplot() method