Learn R Programming

plothelper (version 0.1.9)

New Plots Based on 'ggplot2' and Functions to Create Regular Shapes

Description

An extension to 'ggplot2' and 'magick'. It contains three groups of functions: Functions in the first group draw 'ggplot2' - based plots: geom_shading_bar() draws barplot with shading colors in each bar. geom_rect_cm(), geom_circle_cm() and geom_ellipse_cm() draw rectangles, circles and ellipses with centimeter as their unit. Thus their sizes do not change when the coordinate system or the aspect ratio changes. annotation_transparent_text() draws labels with transparent texts. annotation_shading_polygon() draws irregular polygons with shading colors. Functions in the second group generate coordinates for regular shapes and make linear transformations. Functions in the third group are 'magick' - based functions facilitating image processing.

Copy Link

Version

Install

install.packages('plothelper')

Monthly Downloads

217

Version

0.1.9

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jiang Wu

Last Published

May 8th, 2020

Functions in plothelper (0.1.9)

geom_circle_cm

Geom Layer for Circle with Absolute Size
add_slash_n

Adding Slash_n inside Strings
annotation_transparent_text

Layer for Transparent Text
geom_ellipse_cm

Geom Layer for Ellipse with Absolute Size
count_each_column

Counting Each Column and Summarizing in a Matrix
ABCxy

Symmetrical Transformation
enlarge_raster

Enlarge a Color Matrix
ellipsexy

Generating Coordinates of Multiple Ellipses or Circles
annotation_shading_polygon

Layer for Drawing a Single Irregular Polygon with Shading Colors
ANYxy

Generating Groups of Coordinates for Any Polygon
image_keep_color

Keep Some Colors Unchanged and Make Others into Grayscale
geom_multi_raster

Geom Layer for Drawing Multiple Rasters
geom_rect_cm

Geom Layer for Rectangle with Absolute Size
image_crop_click

Cut out a Subregion of an Image by Mouse Click
image_col_numeric

Colorize an Image according to Gray Scale
rotatexy

Rotation Transformation
resize_to_standard

Resize an Image According to the Other Image or to Ratios
geom_shading_bar

Geom Layer for Drawing Shading Barplot
get_click_color

Obtaining the Colors of Positions Clicked
image_modify_hsv

Modify the H, S, V Values of a Color Vector or an Image
image_modify_local

Modify Only a Subregion of an Image
image_locator

Get the Width and Height of the Mouse Clicked Points
raster_alpha

Combine a Matrix of Colors and a Matrix of Alpha Values
rectxy

Generating Coordinates of Multiple Rectangles
round_text

Converting Numeric Values into Characters with the Same Digits
shading_raster

Create a Shading Raster with a Palette
showcolor

Show a Color Palette
scale_free

Scale values into a Certain Location
gg_shading_bar

Drawing Barplot with Shading Colors
get_gg_label

Checking Min, Max, Labels and Label Positions
image_modify_rgb

Modify R, G, B Values of an Image
image_modify_local2

Modify both a Subregion and the Whole of an Image
sunshinexy

Generating Lines Which Link One Points to Many
spathxy

Reordering Points to Form a "s" Shape
stretchxy

Stretching Transformation
image_modify_rgb_v

Modify R, G, B Values according to V values
textgif

Simple Text ".gif" File
image_transparent_inverse

Keep Certain Colors Unchanged and Make Others Transparent