R language Access Menu

Tile plot

This is often used to show 2 categorical (on x and y axis) and one numeric variable (shown as fill color of tiles). Hence it is well suited for plotting contingency tables. 

Code: 
        > ggplot(bwdf, aes(race, smoke, fill=age))+ geom_tile()

output (graph):

                          

 


    Comments & Feedback