plotfunctions1.5 package

Various Functions to Facilitate Visualization of Data and Analysis

add_bars

Adding bars to an existing plot.

add_n_points

Add groups of points to a plot

addInterval

Draw intervals or arrows on plots.

alpha

Adjusting the transparency of colors.

alphaPalette

Manipulate the transparency in a palette.

check_normaldist

Compare distribution of data with normal distribution.

color_contour

Creates a contour plot with colored background.

convertFile

Replacing separators (for example, decimal and thousand separators).

dotplot_error

Utility function

drawDevArrows

Draw arrows between different plots.

emptyPlot

Utility function

errorBars

Add error bars to a plot.

fill_area

Utility function

find_n_neighbors

Return n neighbors around given indices.

findAbsMin

Return the value (or the element with the value) closest to zero.

firstLetterCap

Capitalize first letter of a string.

get_palette

Retrieve the color scheme for contour plots.

getArrowPos

Converts coordinates in current plot region to device positions (in in...

getCoords

Convert proportions into coordinates of the plot or figure region.

getDec

Return the number of decimal places.

getFigCoords

Get the figure region as coordinates of the current plot region, or as...

getProps

Transform coordinates into proportions of the figure or plot region.

getRange

Function for rounding and/or segmenting a range.

getRatioCoords

Move a vector n elements forward or backward.

gradientLegend

Add a gradient legend to a plot.

group_sort

Sort split by grouping predictor.

inch2coords

Convert device position (inch) to coordinates in current plot region.

isColor

Check whether color specifications exists.

legend_margin

Add legend with respect to figure instead of plot region. Allows to mo...

list2str

Combine list values as string.

marginDensityPlot

Plot density of distribution in margins of the plot.

move_n_point

Move a vector n elements forward or backward.

orderBoxplot

Order boxplot stats following a given ordering.

plot_error

Utility function

plot_image

Add images to plots.

plot_signifArea

Creates a colored surface plot from data frame input.

plotfunctions

Package plotfunctions: Various Functions to Facilitate Visualization o...

plotsurface

Creates a colored surface plot from data frame input.

se

Calculate standard error of the mean.

sortBoxplot

Produce box-and-whisker plot(s) ordered by function such as mean or me...

sortGroups

Sort groups based on a function such as mean value or deviation.

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.