ggplot(data = hotel_bookings) +
geom_bar(mapping = aes(x = market_segment)) +
facet_wrap(~hotel)
Please what is wrong with this code
what makes you think that something is wrong with this code ?
It works okay for me.
After spending two or three hours installing {rstanarm}! I think I was hitting a memory problem but I am not sure. Finally I installed it from the command line.
did you forget
library(ggplot2)
also, in the dataset I have (from https://www.sciencedirect.com/science/article/pii/S2352340918315191#f0010) there is no variable called hotel, and
market_segment is called MarketSegment
The dataset hotel_bookings
is in the {bayesrules} package.
I spent so long installing {rstanarm} so that I could install {bayesrules} that I missed the forest for the trees and totally forgot to point this out.
This is working well for me.
library(tidyverse)
library(bayesrules)
ggplot(data = hotel_bookings) +
geom_bar(mapping = aes(x = market_segment)) +
facet_wrap(~hotel)
was idaka an alternate login for yourself ? I was confused about that.
No, I'm me; idaka is themself.
I, obviously, was not writing clearly. What I meant, was after a grueling battle to install {rstanarm} which {bayesrules} imports, I should have pointed out that we needed {bayenrules} for the data set. I was juggling a couple of things and was more incoherent than usual.
sorry, I misunderstood, it seems you had identified the dataset idaka had relied on, and your post related to issues with installing the package containing the dataset, I get it now. Thanks for your patience.
No problem, I was not exactly coherent.