Package: plotfunctions 1.4

Jacolien van Rij

plotfunctions: Various Functions to Facilitate Visualization of Data and Analysis

When analyzing data, plots are a helpful tool for visualizing data and interpreting statistical models. This package provides a set of simple tools for building plots incrementally, starting with an empty plot region, and adding bars, data points, regression lines, error bars, gradient legends, density distributions in the margins, and even pictures. The package builds further on R graphics by simply combining functions and settings in order to reduce the amount of code to produce for the user. As a result, the package does not use formula input or special syntax, but can be used in combination with default R plot functions. Note: Most of the functions were part of the package 'itsadug', which is now split in two packages: 1. the package 'itsadug', which contains the core functions for visualizing and evaluating nonlinear regression models, and 2. the package 'plotfunctions', which contains more general plot functions.

Authors:Jacolien van Rij [aut, cre]

plotfunctions_1.4.tar.gz
plotfunctions_1.4.zip(r-4.5)plotfunctions_1.4.zip(r-4.4)plotfunctions_1.4.zip(r-4.3)
plotfunctions_1.4.tgz(r-4.4-any)plotfunctions_1.4.tgz(r-4.3-any)
plotfunctions_1.4.tar.gz(r-4.5-noble)plotfunctions_1.4.tar.gz(r-4.4-noble)
plotfunctions_1.4.tgz(r-4.4-emscripten)plotfunctions_1.4.tgz(r-4.3-emscripten)
plotfunctions.pdf |plotfunctions.html
plotfunctions/json (API)
NEWS

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

Peer review:

Datasets:
  • img - Image object.

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

4.74 score 7 packages 94 scripts 2.8k downloads 40 exports 0 dependencies

Last updated 5 years agofrom:ebacdd8368. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 19 2024
R-4.5-winNOTENov 19 2024
R-4.5-linuxNOTENov 19 2024
R-4.4-winNOTENov 19 2024
R-4.4-macNOTENov 19 2024
R-4.3-winOKNov 19 2024
R-4.3-macOKNov 19 2024

Exports:add_barsadd_n_pointsaddIntervalalphaalphaPalettecheck_normaldistcolor_contourconvertFiledotplot_errordrawDevArrowsemptyPloterrorBarsfill_areafind_n_neighborsfindAbsMinfirstLetterCapget_palettegetArrowPosgetCoordsgetDecgetFigCoordsgetPropsgetRangegetRatioCoordsgradientLegendgroup_sortinch2coordsisColorlegend_marginlist2strmarginDensityPlotmove_n_pointorderBoxplotplot_errorplot_imageplot_signifAreaplotsurfacesesortBoxplotsortGroups

Dependencies:

Examples of the package plotfunctions

Rendered fromplotfunctions.Rmdusingknitr::rmarkdownon Nov 19 2024.

Last update: 2020-04-28
Started: 2017-04-24

Readme and manuals

Help Manual

Help pageTopics
Adding bars to an existing plot.add_bars
Add groups of points to a plotadd_n_points
Draw intervals or arrows on plots.addInterval
Adjusting the transparency of colors.alpha
Manipulate the transparency in a palette.alphaPalette
Compare distribution of data with normal distribution.check_normaldist
Creates a contour plot with colored background.color_contour
Replacing separators (for example, decimal and thousand separators).convertFile
Utility functiondotplot_error
Draw arrows between different plots.drawDevArrows
Utility functionemptyPlot
Add error bars to a plot.errorBars
Utility functionfill_area
Return n neighbors around given indices.find_n_neighbors
Return the value (or the element with the value) closest to zero.findAbsMin
Capitalize first letter of a string.firstLetterCap
Retrieve the color scheme for contour plots.get_palette
Converts coordinates in current plot region to device positions (in inch).getArrowPos
Convert proportions into coordinates of the plot or figure region.getCoords
Return the number of decimal places.getDec
Get the figure region as coordinates of the current plot region, or as corrdinates of the figure region.getFigCoords
Transform coordinates into proportions of the figure or plot region.getProps
Function for rounding and/or segmenting a range.getRange
Move a vector n elements forward or backward.getRatioCoords
Add a gradient legend to a plot.gradientLegend
Sort split by grouping predictor.group_sort
Image object.img
Convert device position (inch) to coordinates in current plot region.inch2coords
Check whether color specifications exists.isColor
Add legend with respect to figure instead of plot region. Allows to move legend to margin of plot.legend_margin
Combine list values as string.list2str
Plot density of distribution in margins of the plot.marginDensityPlot
Move a vector n elements forward or backward.move_n_point
Order boxplot stats following a given ordering.orderBoxplot
Utility functionplot_error
Add images to plots.plot_image
Creates a colored surface plot from data frame input.plot_signifArea
Package plotfunctions: Various Functions to Facilitate Visualization of Data and Analysisplotfunctions
Creates a colored surface plot from data frame input.plotsurface
Calculate standard error of the mean.se
Produce box-and-whisker plot(s) ordered by function such as mean or median.sortBoxplot
Sort groups based on a function such as mean value or deviation.sortGroups