Learn R Programming

precisePlacement

The precisePlacement package provides a suite of helper functions for use with base R plots. It is aimed at helping users identify specific points on a plot and getting elements exactly where they want them.

An overview of the package can be found in vignettes/Overview.Rmd.

Installation


## Install the development version from GitHub:
## install.packages("devtools")
devtools::install_github("rntq472/precisePlacement")

Copy Link

Version

Install

install.packages('precisePlacement')

Monthly Downloads

207

Version

0.1.0

License

MIT + file LICENSE

Maintainer

Jasper Watson

Last Published

June 15th, 2021

Functions in precisePlacement (0.1.0)

getPixelsPerInch

Find the Number of Pixels Per Inch in a Plot
getDataPerLine

Find the Number of Data Points Per Margin Line in a Plot
getDataPerPixel

Find the Number of Data Points Per Pixel in a Plot
getPixelsPerLine

Find the Number of Pixels Per Margin Line in a Plot
getInchesPerLine

Find the Number of Inches Per Margin Line in a Plot
getInchesPerPixel

Find the Number of Inches Per Pixel in a Plot
highlightDeviceRegion

Highlight the Device Region of a Plot
highlightFigureRegion

Highlight the Figure Region of a Plot
showMarginLines

Add Lines to a Plot to Indicate Where the Margins Are
convertUnits

Convert Between Different Available Units That Measure Points on a Plot
getRange

Determine the Width and Height of a Plot
precisePlacement

Suite of Functions To Get Plot Elements Exactly Where You Want Them
getBoundaries

Determine the Boundaries of a Plot in Terms of the Data Units
highlightDataRegion

Highlight the Data Region of a Plot
omiForSubFigure

Generate Values for par("omi") That Will Place a New Plot in a Sub-Region of an Existing One
getInchesPerDatum

Find the Number of Inches Per Data Point in a Plot
getPixelsPerDatum

Find the Number of Pixels Per Data Point in a Plot
getLinesPerPixel

Find the Number of Margin Lines Per Pixel in a Plot
showOuterMarginLines

Add Lines to a Plot to Indicate Where the Outer Margins Are
getLinesPerDatum

Find the Number of Margin Lines Per Data Point in a Plot
lineLocations

Wrapper Function for convertUnits Focused on Identifying the Locations of the Margin Lines of a Plot
getLinesPerInch

Find the Number of Margin Lines Per Inch in a Plot
highlightPlotRegion

Highlight the Plotting Region of a Plot
getDataPerInch

Find the Number of Data Points Per Inch in a Plot