scale_x_break
Set an axis break point for a 'gg' plot
scale_x_break(breaks) scale_y_break(breaks)
breaks |
break point |
This scale function set an axis break point for a 'gg' plot. Either 'x' and 'y' axes are supported. The result is still a 'gg' object and user can progressively add layers to it.
gg object
Guangchuang Yu
require(ggplot2 ) set.seed(2019-01-19) d <- data.frame( x = 1:20, y = c(rnorm(5) + 4, rnorm(5) + 20, rnorm(5) + 5, rnorm(5) + 22) ) p <- ggplot(d, aes(x, y)) + geom_col() x <- p+scale_y_break(c(7, 17 ) ) print(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.