Learn R Programming

ggpattern (version 0.2.0)

ggpattern-deprecated: Deprecated data/functions

Description

These data/functions are Deprecated in this release of ggpattern, they will be marked as Defunct and removed in a future version.

Usage

calculate_bbox_polygon_df(polygon_df)

convert_polygon_df_to_alpha_channel(polygon_df, width, height)

rotate_polygon_df(polygon_df, angle, aspect_ratio)

convert_img_to_array(img)

create_gradient_img( width = 100, height = 100, colour1 = "red", colour2 = "blue", orientation = "vertical" )

fetch_placeholder_img(width = 100, height = 100, type = "kitten")

fill_area_with_img( img, width, height, type = "squish", gravity = "Center", filter = "lanczos", scale = 1 )

Arguments

polygon_df

polygon_df data.frame

width

Width

height

Height

angle

angle in degrees

aspect_ratio

aspect ratio

img

magick image

colour1

Colour

colour2

Colour

orientation

Orientation

type

magick type

gravity

magick gravity

filter

magick filter

scale

Scale

Details

  1. For magick_filter_names use magick::filter_types() instead.

  2. For magick_gravity_names use magick::gravity_types() instead.

Examples

Run this code
# NOT RUN {
    suppressWarnings({
      print(magick_filter_names)
      print(magick_gravity_names)
      print(magick_pattern_intensity_names)
      print(magick_pattern_names)
      print(magick_pattern_stripe_names)
      print(placeholder_names)
    })
# }

Run the code above in your browser using DataLab