grid_axTicks: get the locations for ticks for custom grid

View source: R/grid.R

grid_axTicksR Documentation

get the locations for ticks for custom grid

Description

get the locations for ticks for custom grid

Usage

grid_axTicks(object, side)

Arguments

object

a gsplot object

side

a numeric side

Details

grid_axTicks uses different methods to get tick locations depending on the class of the data on that side. For numeric data, axTicks, for other data (only tested Date and POSIX), axis.Date and axis.POSIXct are used, but the actual plotting of ticks is suppressed. This function is really hard to test because it uses the actual plot to get tick locations, so it is hard to isolate.

Value

a numeric vector of locations for ticks


USGS-R/gsplot documentation built on April 17, 2023, 8:45 p.m.