limits(lims, var)
Generate correct scale type for specified limits
ggplot2:::limits(c(1, 5), "x")<ggproto object: Class ScaleContinuousPosition, ScaleContinuous, Scale> aesthetics: x xmin xmax xend xintercept break_info: function break_positions: function breaks: waiver call: call clone: function dimension: function expand: waiver get_breaks: function get_breaks_minor: function get_labels: function get_limits: function guide: none is_discrete: function is_empty: function labels: waiver limits: 1 5 map: function map_df: function minor_breaks: waiver na.value: NA name: waiver oob: function palette: function range: <ggproto object: Class RangeContinuous, Range> range: NULL reset: function train: function super: <ggproto object: Class RangeContinuous, Range> rescaler: function reset: function scale_name: position_c train: function train_df: function trans: trans transform: function transform_df: function super: <ggproto object: Class ScaleContinuousPosition, ScaleContinuous, Scale>ggplot2:::limits(c(5, 1), "x")<ggproto object: Class ScaleContinuousPosition, ScaleContinuous, Scale> aesthetics: x xmin xmax xend xintercept break_info: function break_positions: function breaks: waiver call: call clone: function dimension: function expand: waiver get_breaks: function get_breaks_minor: function get_labels: function get_limits: function guide: none is_discrete: function is_empty: function labels: waiver limits: -5 -1 map: function map_df: function minor_breaks: waiver na.value: NA name: waiver oob: function palette: function range: <ggproto object: Class RangeContinuous, Range> range: NULL reset: function train: function super: <ggproto object: Class RangeContinuous, Range> rescaler: function reset: function scale_name: position_c train: function train_df: function trans: trans transform: function transform_df: function super: <ggproto object: Class ScaleContinuousPosition, ScaleContinuous, Scale>ggplot2:::limits(c("A", "b", "c"), "x")<ggproto object: Class ScaleDiscretePosition, ScaleDiscrete, Scale> aesthetics: x xmin xmax xend break_info: function break_positions: function breaks: waiver call: call clone: function dimension: function drop: TRUE expand: waiver get_breaks: function get_breaks_minor: function get_labels: function get_limits: function guide: none is_discrete: function is_empty: function labels: waiver limits: A b c map: function map_df: function na.value: NA name: waiver palette: function range: <ggproto object: Class RangeDiscrete, Range> range: NULL reset: function train: function super: <ggproto object: Class RangeDiscrete, Range> range_c: <ggproto object: Class RangeContinuous, Range> range: NULL reset: function train: function super: <ggproto object: Class RangeContinuous, Range> reset: function scale_name: position_d train: function train_df: function transform: function transform_df: function super: <ggproto object: Class ScaleDiscretePosition, ScaleDiscrete, Scale>ggplot2:::limits(c("A", "b", "c"), "fill")<ggproto object: Class ScaleDiscrete, Scale> aesthetics: fill break_info: function break_positions: function breaks: waiver call: call clone: function dimension: function drop: TRUE expand: waiver get_breaks: function get_breaks_minor: function get_labels: function get_limits: function guide: legend is_discrete: function is_empty: function labels: waiver limits: A b c map: function map_df: function na.value: grey50 name: waiver palette: function range: <ggproto object: Class RangeDiscrete, Range> range: NULL reset: function train: function super: <ggproto object: Class RangeDiscrete, Range> reset: function scale_name: hue train: function train_df: function transform: function transform_df: function super: <ggproto object: Class ScaleDiscrete, Scale>ggplot2:::limits(as.Date(c("2008-01-01", "2009-01-01")), "x")<ggproto object: Class ScaleContinuousDate, ScaleContinuous, Scale> aesthetics: x xmin xmax xend break_info: function break_positions: function breaks: waiver call: call clone: function dimension: function expand: waiver get_breaks: function get_breaks_minor: function get_labels: function get_limits: function guide: none is_discrete: function is_empty: function labels: waiver limits: 13879 14245 map: function map_df: function minor_breaks: waiver na.value: NA name: waiver oob: function palette: function range: <ggproto object: Class RangeContinuous, Range> range: NULL reset: function train: function super: <ggproto object: Class RangeContinuous, Range> rescaler: function reset: function scale_name: date train: function train_df: function trans: trans transform: function transform_df: function super: <ggproto object: Class ScaleContinuousDate, ScaleContinuous, Scale>