squish_trans | R Documentation |
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
squish_trans(from, to, factor)
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 |
A trans object that can be used to ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.