coord_imgtoplt: coord_imgtoplt

View source: R/coord_imgtoplt.R

coord_imgtopltR Documentation

coord_imgtoplt

Description

A function to get back coordinates from the original plot according the coordinates from the image of the plot. You'll need to know what are the coordinates on the image of the axes.

Usage

coord_imgtoplt(data, scale)

Arguments

data

A data frame that contains the coordinates of the points on the image

scale

A data frame of 2 rows and 4 columns built as follow : 'x_img' is the column that contains x range on the image that correspond to the x axes of the plot 'x_plot' is the column that contains range of the x axes of the plot 'y_img' is the column that contains y range on the image that correspond to the y axes of the plot 'y_plot' is the column that contains range of the y axes of the plot

Value

The data rescaled on the original plot


mgerault/drawYpath documentation built on July 14, 2022, 10:28 a.m.