ggpattern package

High level package description

ggpattern

ggpattern: Geoms with Patterns

Geom functions

patterned geom functions to use with {ggplot2}

geom_rect_pattern() geom_bar_pattern() geom_bin2d_pattern() geom_boxplot_pattern() geom_col_pattern() geom_crossbar_pattern() geom_ribbon_pattern() geom_area_pattern() geom_density_pattern() geom_polygon_pattern() geom_map_pattern() geom_sf_pattern() geom_tile_pattern() geom_violin_pattern()

ggplot2 geoms with support for pattern fills

Scale functions

patterned scale functions to use with {ggplot2}

scale_pattern_angle_continuous() scale_pattern_angle_discrete() scale_pattern_density_continuous() scale_pattern_density_discrete() scale_pattern_spacing_continuous() scale_pattern_spacing_discrete() scale_pattern_xoffset_continuous() scale_pattern_xoffset_discrete() scale_pattern_yoffset_continuous() scale_pattern_yoffset_discrete() scale_pattern_aspect_ratio_continuous() scale_pattern_aspect_ratio_discrete() scale_pattern_key_scale_factor_continuous() scale_pattern_key_scale_factor_discrete() scale_pattern_scale_continuous() scale_pattern_scale_discrete() scale_pattern_phase_continuous() scale_pattern_phase_discrete() scale_pattern_frequency_continuous() scale_pattern_frequency_discrete() scale_pattern_res_continuous() scale_pattern_res_discrete() scale_pattern_rot_continuous() scale_pattern_rot_discrete()

Scales for continuous pattern aesthetics

scale_pattern_continuous() scale_pattern_discrete() scale_pattern_type_continuous() scale_pattern_type_discrete() scale_pattern_subtype_continuous() scale_pattern_subtype_discrete() scale_pattern_filename_continuous() scale_pattern_filename_discrete() scale_pattern_filter_continuous() scale_pattern_filter_discrete() scale_pattern_gravity_continuous() scale_pattern_gravity_discrete() scale_pattern_orientation_continuous() scale_pattern_orientation_discrete() scale_pattern_grid_continuous() scale_pattern_grid_discrete()

Scales for discrete pattern aesthetics

scale_pattern_alpha_continuous() scale_pattern_alpha() scale_pattern_alpha_discrete() scale_pattern_alpha_ordinal()

Alpha transparency scales

scale_pattern_colour_brewer() scale_pattern_fill_brewer() scale_pattern_fill2_brewer() scale_pattern_colour_distiller() scale_pattern_fill_distiller() scale_pattern_fill2_distiller()

Sequential, diverging and qualitative colour scales from colorbrewer.org

scale_pattern_colour_continuous() scale_pattern_fill_continuous() scale_pattern_fill2_continuous()

Continuous and binned colour scales

scale_pattern_colour_gradient() scale_pattern_fill_gradient() scale_pattern_fill2_gradient() scale_pattern_colour_gradient2() scale_pattern_fill_gradient2() scale_pattern_fill2_gradient2() scale_pattern_colour_gradientn() scale_pattern_fill_gradientn() scale_pattern_fill2_gradientn()

Gradient colour scales

scale_pattern_colour_grey() scale_pattern_fill_grey() scale_pattern_fill2_grey()

Sequential grey colour scales

scale_pattern_colour_hue() scale_pattern_fill_hue() scale_pattern_fill2_hue()

Evenly spaced colours for discrete data

scale_pattern_colour_viridis_d() scale_pattern_fill_viridis_d() scale_pattern_fill2_viridis_d() scale_pattern_colour_viridis_c() scale_pattern_fill_viridis_c() scale_pattern_fill2_viridis_c()

Viridis colour scales from viridisLite

scale_pattern_identity() scale_pattern_type_identity() scale_pattern_subtype_identity() scale_pattern_angle_identity() scale_pattern_density_identity() scale_pattern_spacing_identity() scale_pattern_xoffset_identity() scale_pattern_yoffset_identity() scale_pattern_alpha_identity() scale_pattern_linetype_identity() scale_pattern_size_identity() scale_pattern_shape_identity() scale_pattern_colour_identity() scale_pattern_fill_identity() scale_pattern_fill2_identity() scale_pattern_aspect_ratio_identity() scale_pattern_key_scale_factor_identity() scale_pattern_filename_identity() scale_pattern_filter_identity() scale_pattern_gravity_identity() scale_pattern_scale_identity() scale_pattern_orientation_identity() scale_pattern_phase_identity() scale_pattern_frequency_identity() scale_pattern_grid_identity() scale_pattern_res_identity() scale_pattern_rot_identity()

Use values without scaling

scale_pattern_linetype() scale_pattern_linetype_continuous() scale_pattern_linetype_discrete()

Scale for line patterns

scale_pattern_manual() scale_pattern_type_manual() scale_pattern_subtype_manual() scale_pattern_angle_manual() scale_pattern_density_manual() scale_pattern_spacing_manual() scale_pattern_xoffset_manual() scale_pattern_yoffset_manual() scale_pattern_alpha_manual() scale_pattern_linetype_manual() scale_pattern_size_manual() scale_pattern_shape_manual() scale_pattern_colour_manual() scale_pattern_fill_manual() scale_pattern_fill2_manual() scale_pattern_aspect_ratio_manual() scale_pattern_key_scale_factor_manual() scale_pattern_filename_manual() scale_pattern_filter_manual() scale_pattern_gravity_manual() scale_pattern_scale_manual() scale_pattern_orientation_manual() scale_pattern_phase_manual() scale_pattern_frequency_manual() scale_pattern_grid_manual() scale_pattern_res_manual() scale_pattern_rot_manual()

Create your own discrete scale

scale_pattern_shape() scale_pattern_shape_discrete() scale_pattern_shape_ordinal() scale_pattern_shape_continuous()

Scales for shapes, aka glyphs

scale_pattern_size_continuous() scale_pattern_size()

Scales for area or radius

Geom ggproto objects

Geom ggproto objects that developers could theoretically extend

GeomRectPattern GeomBarPattern GeomBoxplotPattern GeomColPattern GeomCrossbarPattern GeomRibbonPattern GeomAreaPattern GeomDensityPattern GeomPolygonPattern GeomMapPattern GeomSfPattern GeomTilePattern GeomViolinPattern

Geom ggproto objects

New geom development functions

various functions mainly intended for developing new geoms

create_polygon_df()

Create a polygon_df object from the given coordinates

is_polygon_df()

Test if object is polygon_df or NULL

draw_key_polygon_pattern() draw_key_boxplot_pattern() draw_key_crossbar_pattern()

Key glyphs for legends

Deprecated functions

Deprecated functions that may be removed in a future version

convert_polygon_df_to_polygon_grob() convert_polygon_df_to_polygon_sf() convert_polygon_sf_to_polygon_df()

Deprecated data/functions

Defunct functions

Defunct functions that were removed from a previous version

calculate_bbox_polygon_df() convert_polygon_df_to_alpha_channel() rotate_polygon_df() convert_img_to_array() create_gradient_img() fetch_placeholder_img() fill_area_with_img()

Defunct data/functions