Error: Can't find `stat` called "bar"

146 views
Skip to first unread message

sebastien....@gmail.com

unread,
Aug 18, 2018, 3:28:06 PM8/18/18
to Deducer
Hello,

Whenever I use the plot builder to produce the bar plot of a categorical variable, the following error is returned:
Error: Can't find `stat` called "bar".

This is also what is returned when I specifically select "count" in the "stat" rolling menu.

This seems to be a problem of mapping, as the "View call" indeed gives
ggplot() +
    geom_bar
(aes(x = Species),data=iris,stat = 'bar')

Do I do something wrong?

Thanks a lot in advance for your help!

Sébastien

sebastien....@gmail.com

unread,
Sep 28, 2018, 1:35:23 PM9/28/18
to Deducer
Would anyone have an idea about this?

Thanks in advance,

Sébastien

rudolf....@gmail.com

unread,
Oct 3, 2018, 1:47:21 AM10/3/18
to Deducer
deducer 0.7-9,  R 3.5.1, rjava 0.9-10, macOs 10.14

Selecting bar from Templates, but not from Geometric Elements works well.

ggplot() +
geom_bar(aes(y = ..count..,x = Species),data=iris)

Best regards
Rudolf
Reply all
Reply to author
Forward
0 new messages