Dear all,
I am trying to create facet grid with the following code
p <- ggplot(melted,aes(factor(country))) + geom_bar() +opts(axis.text.x = theme_text(angle = 90,hjust = 1))
p + facet_grid(. ~ provider)
but I always get the following error:
Error in sub("^[^:]+: ([^\n]+)\n[0-9]+:(.*)$", "\1\2", expr) : input string 1 is invalid in this locale
I do not have any idea what I am doing wrong. also tried to factor my facet, which doesn't work either.
Thx in advance!