मैं निम्नलिखित की साजिश करता हूं:
library(ggplot2)
carrots <- data.frame(length = rnorm(500000, 10000, 10000))
cukes <- data.frame(length = rnorm(50000, 10000, 20000))
carrots$veg <- 'carrot'
cukes$veg <- 'cuke'
vegLengths <- rbind(carrots, cukes)
ggplot(vegLengths, aes(length, fill = veg)) +
geom_density(alpha = 0.2)
अब कहते हैं कि मैं केवल के बीच इस क्षेत्र प्लॉट करने के लिए चाहते हैं x=-5000के लिए 5000, संपूर्ण रेंज के बजाय।
मैं उसे कैसे कर सकता हूँ?

library(scales); ... + scale_x_continuous(limits = c(-5000, 5000), oob=squish)(डिफ़ॉल्ट हैoob=censor); देखना?squish,?censor: groups.google.com/forum/#!topic/ggplot2/AsJ6xpmR9tU