precisePlacement0.2.0 package

Suite of Functions to Help Get Plot Elements Exactly Where You Want Them

convertUnits

Convert Between Different Available Units That Measure Points on a Plo...

getBoundaries

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

getDataPerInch

Find the Number of Data Points 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

getInchesPerDatum

Find the Number of Inches Per Data Point 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

getLinesPerDatum

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

getLinesPerInch

Find the Number of Margin Lines Per Inch in a Plot

getLinesPerPixel

Find the Number of Margin Lines Per Pixel in a Plot

getPixelsPerDatum

Find the Number of Pixels Per Data Point in a Plot

getPixelsPerInch

Find the Number of Pixels Per Inch in a Plot

getPixelsPerLine

Find the Number of Pixels Per Margin Line in a Plot

getRange

Determine the Width and Height of a Plot

highlightDataRegion

Highlight the Data Region of a Plot

highlightDeviceRegion

Highlight the Device Region of a Plot

highlightFigureRegion

Highlight the Figure Region of a Plot

highlightPlotRegion

Highlight the Plotting Region of a Plot

lineLocations

Wrapper Function for convertUnits Focused on Identifying the Locations...

omiForSubFigure

Generate Values for par("omi") That Will Place a New Plot in a Sub-Reg...

precisePlacement

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

repelAxisLabels

Distribute Axis Label Locations to Avoid Overlap.

showMarginLines

Add Lines to a Plot to Indicate Where the Margins Are

showOuterMarginLines

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

Provides a selection of tools that make it easier to place elements onto a (base R) plot exactly where you want them. It allows users to identify points and distances on a plot in terms of inches, pixels, margin lines, data units, and proportions of the plotting space, all in a manner more simple than manipulating par().

  • Maintainer: Jasper Watson
  • License: MIT + file LICENSE
  • Last published: 2025-10-29