squish_trans: Squishing the Y-axis of a ggplot trans object

View source: R/squish_trans.R

squish_transR Documentation

Squishing the Y-axis of a ggplot trans object

Description

This function takes an interval and outputs a trans object that "squishes" the y-axis where it may be uninformative. This was taken from the following link: https://stackoverflow.com/questions/35511951/r-ggplot2-collapse-or-remove-segment-of-y-axis-from-scatter-plot

Usage

squish_trans(from, to, factor)

Arguments

from

Lower bound of the interval to be squished

to

Upper bound of the interval to be squished

factor

factor to be used in squishing-interval

Value

A trans object that can be used to ggplot


sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.