I want to show the effect of removing outliers on my histogram, so I have to plot both hists together.
boxplot(Costs, Costs1,
xlab=" Costs and Costs after removig outliers",
col=topo.colors(2))
so i tried this:
hist(Costs,Costs1,main="Histogram of Maintenance_cost ",col="blue",
border="darkblue",xlab="Total_cost",ylab=" ",yaxt = 'n',
#ylim=c(0,3000),
#xlim=c(0,max(My_Costs)),
breaks=60)
the first code give me to box plot, but I tried it for hist it doesn't work can anyone tell me how to do it in R?
