Hi all! Thanks in advance. I'm working on a bar chart with a single bar which is too wide for my visual liking, but I've found that narrowing the width of the bar only reduces the width of the bar and not the panel around it--which leads to the title of the plot floating up in the air above it (my final chart will not have a border or background, which would visually cue where the panel ends and the plot title begins). Any suggestions for how to fix this?
library(tidyverse) df <- tibble( brand = c("Facebook", "Google", "Twitter"), market_share = c(.4,.5,.1) ) ggplot(df) + aes(x = "Total", y = market_share, fill = brand) + geom_bar(stat = "identity") + labs(title = "My Title!") + coord_flip() + theme_bw()
Created on 2019-10-03 by the reprex package (v0.3.0)