Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一系列点,我想在周围放置一个边界。我该怎么办?
这些是我的观点:
我试过 geom_line 但这显然是错误的,因为它产生了这个!
谢谢
使用geom_path而不是geom_line. 这是一个例子:
geom_path
geom_line
i <- seq(0, 2*pi, length.out=50) dat <- data.frame(x=cos(i), y=sin(i)) library(ggplot2) ggplot(dat, aes(x, y)) + geom_line()
ggplot(dat, aes(x, y)) + geom_path()