tried a simply boxplot with ggplo2
ggplot(aes(x = quality, y = residual.sugar),data=data)+
geom_boxplot(fill="#9999CC")+scale_y_continuous(limits =c (0,20))
when i exucute it in R itself, it looks like want it , like this:

but when i knit it to get my html file, it looks like this :

Anyone knows how to fix that? i am confused :(
The most likely difference is that you forgot to make
qualityinto a factor within yourrmdfile.For example: