Convert from beziers to line segments in pure #RStats.
Here's the tiger, once with false colour, once with real colours. Plotted with #ggplot geom_polygon()
Feeling pretty good for a bit of lazy #WeekendCoding
Convert from beziers to line segments in pure #RStats.
Here's the tiger, once with false colour, once with real colours. Plotted with #ggplot geom_polygon()
Feeling pretty good for a bit of lazy #WeekendCoding

build_ggplot() takes the plot object, and performs all steps necessary to produce an object that can be rendered. This function outputs two pieces: a list of data frames (one for each layer), and a panel object, which contain all information about axis limits, breaks etc. The ggplot_build() function is vestigial and build_ggplot() should be used instead.
3D ggplot of parabolic great circle trajectories (i.e. ballistic-ish paths) on a non-linear Robinson projection: how do we ensure the 3D data is consistent with the underlying ggplot? Simple: we extract the coordinate transformation from the ggplot object itself!

Over 1400 graphs with reproducible code divided in 8 big categories and over 50 chart types, in addition of tools to choose and create colors and color palettes