Package: plothelper 0.1.9

Jiang Wu

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

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.

Authors:Jiang Wu [aut, cre]

plothelper_0.1.9.tar.gz
plothelper_0.1.9.tar.gz(r-4.5-noble)plothelper_0.1.9.tar.gz(r-4.4-noble)
plothelper_0.1.9.tgz(r-4.4-emscripten)plothelper_0.1.9.tgz(r-4.3-emscripten)
plothelper.pdf |plothelper.html
plothelper/json (API)

# Install 'plothelper' in R:
install.packages('plothelper', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/githubwwwjjj/plothelper/issues

38 exports 0.00 score 44 dependencies 213 downloads

Last updated 4 years agofrom:c073fd0b03. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 25 2024
R-4.5-linuxOKAug 25 2024

Exports:ABCxyadd_slash_nannotation_shading_polygonannotation_transparent_textANYxycount_each_columnellipsexyenlarge_rastergeom_circle_cmgeom_ellipse_cmgeom_multi_rastergeom_rect_cmgeom_shading_barget_click_colorget_gg_labelgg_shading_barimage_col_numericimage_crop_clickimage_keep_colorimage_locatorimage_modify_hsvimage_modify_localimage_modify_local2image_modify_rgbimage_modify_rgb_vimage_transparent_inverseraster_alpharectxyresize_to_standardrotatexyround_textscale_freeshading_rastershowcolorspathxystretchxysunshinexytextgif

Dependencies:clicolorspacecommonmarkcurlfansifarverggfittextggplot2gluegridExtragridtextgtableisobandjpeglabelinglatticelifecyclemagickmagrittrmarkdownMASSMatrixmgcvmunsellnlmepillarpkgconfigplyrpngR6RColorBrewerRcpprlangscalesshadesstringistringrtibbleutf8vctrsviridisLitewithrxfunxml2

Readme and manuals

Help Manual

Help pageTopics
Symmetrical TransformationABCxy
Adding Slash_n inside Stringsadd_slash_n
Layer for Drawing a Single Irregular Polygon with Shading Colorsannotation_shading_polygon
Layer for Transparent Textannotation_transparent_text
Generating Groups of Coordinates for Any PolygonANYxy
Counting Each Column and Summarizing in a Matrixcount_each_column
Generating Coordinates of Multiple Ellipses or Circlesellipsexy
Enlarge a Color Matrixenlarge_raster
Geom Layer for Circle with Absolute Sizegeom_circle_cm
Geom Layer for Ellipse with Absolute Sizegeom_ellipse_cm
Geom Layer for Drawing Multiple Rastersgeom_multi_raster
Geom Layer for Rectangle with Absolute Sizegeom_rect_cm
Geom Layer for Drawing Shading Barplotgeom_shading_bar
Obtaining the Colors of Positions Clickedget_click_color
Checking Min, Max, Labels and Label Positionsget_gg_label
Drawing Barplot with Shading Colorsgg_shading_bar
Colorize an Image according to Gray Scaleimage_col_numeric
Cut out a Subregion of an Image by Mouse Clickimage_crop_click
Keep Some Colors Unchanged and Make Others into Grayscaleimage_keep_color
Get the Width and Height of the Mouse Clicked Pointsimage_locator
Modify the H, S, V Values of a Color Vector or an Imageimage_modify_hsv
Modify Only a Subregion of an Imageimage_modify_local
Modify both a Subregion and the Whole of an Imageimage_modify_local2
Modify R, G, B Values of an Imageimage_modify_rgb
Modify R, G, B Values according to V valuesimage_modify_rgb_v
Keep Certain Colors Unchanged and Make Others Transparentimage_transparent_inverse
Combine a Matrix of Colors and a Matrix of Alpha Valuesraster_alpha
Generating Coordinates of Multiple Rectanglesrectxy
Resize an Image According to the Other Image or to Ratiosresize_to_standard
Rotation Transformationrotatexy
Converting Numeric Values into Characters with the Same Digitsround_text
Scale values into a Certain Locationscale_free
Create a Shading Raster with a Paletteshading_raster
Show a Color Paletteshowcolor
Reordering Points to Form a "s" Shapespathxy
Stretching Transformationstretchxy
Generating Lines Which Link One Points to Manysunshinexy
Simple Text ".gif" Filetextgif