R language Access Menu

Lineplot with points and confidence intervals

It is often needed to show y axis values against multiple groups. In addition to boxplots shown earlier, lineplots with confidence intervals can also be used: 


> library(sciplot)
> lineplot.CI(x.factor=race, response=age, data=bwdf, xlab='Race', ylab='Age')



Even numeric variable may work as factors for such graphs: 

       > lineplot.CI(x.factor=age, response=lwt, data=bwdf, xlab='Age', ylab='LWT')

output (graph): 


    Comments & Feedback