View source: R/scale-pattern.R
scale_pattern_identity | R Documentation |
Use values without scaling
scale_pattern_type_identity(..., guide = "none")
scale_pattern_subtype_identity(..., guide = "none")
scale_pattern_angle_identity(..., guide = "none")
scale_pattern_density_identity(..., guide = "none")
scale_pattern_spacing_identity(..., guide = "none")
scale_pattern_xoffset_identity(..., guide = "none")
scale_pattern_yoffset_identity(..., guide = "none")
scale_pattern_alpha_identity(..., guide = "none")
scale_pattern_linetype_identity(..., guide = "none")
scale_pattern_size_identity(..., guide = "none")
scale_pattern_shape_identity(..., guide = "none")
scale_pattern_colour_identity(..., guide = "none")
scale_pattern_fill_identity(..., guide = "none")
scale_pattern_fill2_identity(..., guide = "none")
scale_pattern_aspect_ratio_identity(..., guide = "none")
scale_pattern_key_scale_factor_identity(..., guide = "none")
scale_pattern_filename_identity(..., guide = "none")
scale_pattern_filter_identity(..., guide = "none")
scale_pattern_gravity_identity(..., guide = "none")
scale_pattern_scale_identity(..., guide = "none")
scale_pattern_orientation_identity(..., guide = "none")
scale_pattern_phase_identity(..., guide = "none")
scale_pattern_frequency_identity(..., guide = "none")
scale_pattern_grid_identity(..., guide = "none")
scale_pattern_res_identity(..., guide = "none")
scale_pattern_rot_identity(..., guide = "none")
scale_pattern_units_identity(..., guide = "none")
scale_pattern_identity(..., guide = "none")
... , guide |
See |
A ggplot2::Scale object.
if (require('ggplot2')) {
df <- data.frame(outcome = c(2.3, 1.9, 3.2, 1),
pattern_type = sample(gridpattern::names_polygon_tiling, 4))
gg <- ggplot(df) +
geom_col_pattern(
aes(pattern_type, outcome, pattern_fill = pattern_type,
pattern_type = pattern_type),
colour = 'black',
pattern = 'polygon_tiling',
pattern_key_scale_factor = 1.2
) +
scale_pattern_type_identity() +
theme_bw(18) +
theme(legend.position = 'none') +
labs(
x = 'level',
title = 'ggpattern::geom_col_pattern()',
subtitle = 'pattern = \'polygon_tiling\''
)
plot(gg)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.