I need to make some pretties!
ggplot2
as much easier than base graphicsoptiRum::multiplot()
library(ggplot2) ggplot(OrderTerritory # dataset ,aes(x=Name, y=..count..))+ # values geom_bar()+ # chart type theme_minimal()+ # themeing labs(x="Region",title="All time sales volumes")
library(ggplot2) ggplot(OrderTerritory # dataset ,aes(x=Name, y=..count..))+ # values geom_bar()+ # chart type theme_minimal()+ # themeing labs(x="Region",title="All time sales volumes")
library(scales) ggplot(OrderTerritory ,aes(x=Name, y=TotalDue))+ geom_bar(stat="identity")+ # use value theme_minimal()+ scale_y_continuous(label=dollar)+ # customisation labs(x="Region",title="All time sales value")
library(scales) ggplot(OrderTerritory ,aes(x=Name, y=TotalDue))+ geom_bar(stat="identity")+ # use value theme_minimal()+ scale_y_continuous(label=dollar)+ # customisation labs(x="Region",title="All time sales value")
ggplot(OrderTerritory ,aes(x=year(OrderDate), y=TotalDue, colour=Name))+ geom_bar(stat="identity")+ theme_minimal()+ scale_y_continuous(label=dollar)+ facet_wrap(~Name,ncol = 2) + # trellis xlab("Order Year")
ggplot(OrderTerritory ,aes(x=year(OrderDate), y=TotalDue, colour= Name))+ geom_bar(stat="identity", colour="light blue")+ theme_minimal()+ scale_y_continuous(label=dollar)+ facet_wrap(~Name,ncol = 2) + # trellis xlab("Order Year")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.