get.vals: Get x and/or y values from a plot using the mouse

Description Usage Arguments Details Value

Description

Get x and/or y values from a plot using the mouse

Usage

1
get.vals(axis = c("x", "y")[1], round.to = 1, print = TRUE)

Arguments

axis

Which axes to return values for, character vector

round.to

An integer number that values will be rounded to. For example if round.to=100, values will be rounded to the nearest 100.

print

Whether to print the values in the console, T/F

Details

This function allows you to get the x and/or y values by clicking on the active plot window. When you're done clicking, right-click and select 'Stop' from the pop-up menu.

Value

A vector or matrix of the x and/or y values where the mouse was clicked.


tlocoh documentation built on May 2, 2019, 5:27 p.m.