R/geom-rect.R, R/geom-bar.R, R/geom-bin2d.R, and 10 more
geom_rect_pattern.RdAll geoms in this package are identical to their counterparts in ggplot2 except that they can be filled with patterns.
| mapping, data, stat, position, linejoin, na.rm, show.legend, inherit.aes, binwidth | See ggplot2 for description of the standard arguments to each geom. |
|---|
Not all arguments apply to all patterns.
patternPattern name string e.g. 'stripe' (default), 'crosshatch', 'point', 'circle', 'none'
pattern_colour Colour used for strokes and points. default: 'black'
pattern_fill Fill colour. default: 'black'
pattern_angle Orientation of the pattern in degrees. default: 45
pattern_density Approximate fill fraction of the pattern. Usually in range [0, 1], but can be higher. default: 0.2
pattern_spacing Spacing of the pattern as a fraction of the plot size. default: 0.05
pattern_xoffset,pattern_yoffsetOffset the origin of the pattern. Range [0, 1]. default: 0. Use this to slightly shift the origin of the pattern. For most patterns, the user should limit the offset value to be less than the pattern spacing.
pattern_alpha Alpha transparency for pattern. default: 1
pattern_linetype Stroke linetype. default: 1
pattern_size Stroke line width. default: 1
pattern_option_1 Generic User value