Open TonLeon opened 5 years ago
First, you need to reread section about aggregated and not aggregated data. You will find out that it is easy to get rid of error by using geom_col()
instead of geom_bar()
. Second, I think you could get rid of this really long line of yours using fct_reorder()
function (read more about it in the class notes). Get me informed about the progress.
Trying to work with the following dataset, which I called pubs, I wanted to select 30 the most popular titles of pubs, count the number of their appearence/mentions on the territory of England in a new column and visualize it in bar. I imagined that x-axis would consist of pubs' names and y-axis - of their quantity. But I faced with a problem
stat_count() must not be used with a y aesthetic
, so I don't know where to put y-argument in this code:Cheers.