powered by
geom_rect(mapping = NULL, data = NULL, stat = "identity", position = "identity", ...)
aes
aes_string
layer
df <- data.frame( x = sample(10, 20, replace = TRUE), y = sample(10, 20, replace = TRUE) ) ggplot(df, aes(xmin = x, xmax = x + 1, ymin = y, ymax = y + 2)) + geom_rect()
Run the code above in your browser using DataLab