get_graph_limits: get_graph_limits

View source: R/get_graph_limits.R

get_graph_limitsR Documentation

get_graph_limits

Description

A helper function for InSpectoR. To get plotting limits from a list of spectral data files. Not exported.

Usage

get_graph_limits(x)

Arguments

x

a list of spectral data files. Usually XData or XData_p

Value

A list with two elements

  • xlimits: a vector c(xmin,xmax)

  • ylimits: a vector c(ymin,ymax)

Examples

dfile <- system.file("foodstuff_powder","Y_foodstuff.txt",package="inspectrar")
InSpectoR(dfile,0,1600,1024)
#**************************************************
#GUI may wait for your answer for creating a backup!
#**************************************************
leslimites <- get_graph_limits(XData_p)
#******************************************
#Don't forget that an active GUI is running.
#******************************************


PannetonB/inspectrar documentation built on Feb. 4, 2023, 1:57 p.m.