

STAT1003 – Statistical Techniques
Dr. Emi Tanaka
Australian National University
These slides are best viewed on a modern browser like Google Chrome on a desktop or laptop. Some interactive components may require some time to fully load.
geom_bar()geom_col()geom_point()geom_tile()geom_density()geom_bar()stat = "count" is computing the frequencies for each category for you.stat_count() and change the geom.geom_col()stat = "count" to do the counting for you and use geom_col() instead.geom_bar(stat = "identity") where stat = "identity" means that you will take the value as supplied without any statistical transformation.position_dodge() for grouped barplotsposition_dodge2() for improved grouped barplotsposition_fill() for stacked percentage barplotsposition_identity() to use the raw positionsposition_jitter() to add random noise to pointsposition_jitterdodge() for jittered and dodged pointsposition_nudge() to shift the position by a fixed amountposition_stack() for stacked barplotscoord_polar()

coord_cartesian() for Cartesian coordinate systems (default)coord_equal() is essentially coord_fixed(ratio = 1)coord_fixed() to use a fixed aspect ratiocoord_flip() to flip the x and ycoord_map() to use projection based on mapprojcoord_munch() to improve rendering of large datasetscoord_polar() to use polar coordinatescoord_quickmap() for quick map coordinate systemcoord_radial() for radial coordinatescoord_sf() for spatial data framescoord_transform() to transform the coordinate after the statistical transformationposition_dodge()position_dodge2()position_fill()position_identity()position_jitter()position_jitterdodge()position_nudge()position_stack()coord_cartesian()coord_equal()coord_fixed()coord_flip()coord_map()coord_munch()coord_polar()coord_quickmap()coord_radial()coord_sf()coord_transform()
STAT1003 – Statistical Techniques