Hello everyone! I'm beginner in R.
Today, I wanted to make a plot of pubs in UK, but it always gives me mistake in aesthetics...
My goal is to make this:
where 40 or 50 most frequent names of pubs in the UK: the x-axis is for the number of symbols in the pub name, the y-axis is for the number of bars with the same name.
I made this as variables:
bars <- read_csv("https://raw.githubusercontent.com/dashapopova/Intro-to-R/main/HWs/HW2/UK_pubs.csv")
bars
pubs <- count(bars, pub_name, sort = TRUE)
pubs_sl <- slice(pubs, n = 1:40)
pub_len <- pubs_sl %>%
mutate(n_charactars = str_count(pub_name))
But I cant integrate them in the plot without a mistake in aesthetics . Can you tell me why I have this mistake with this variables?
Thank you for your answers!