df <- data.frame()
ggplot(df) + geom_point() + xlim(0, 10) + ylim(0, 100)
and based on @ilya's recommendation, geom_blank
is perfect for when you already have data and can just set the scales based on that rather than define it explicitly.
ggplot(mtcars, aes(x = wt, y = mpg)) + geom_blank()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…