r - ggplot2: connecting points in polar coordinates with a straight line
问题 I have a plot in polar coordinates. I used geom_path to connect the points, but I'd like the paths to be straight lines. Here's what I have so far: example <- data.frame(c(5,4,3),c(0.9,1.1,0.6)) colnames(example) <- c("r", "theta") myplot <- ggplot(example, aes(r, theta)) + geom_point(size=3.5) + coord_polar(theta="y", start = 3/2*pi, direction=-1) + scale_x_continuous(breaks=seq(0,max(example$r)), lim=c(0, max(example$r))) + scale_y_continuous(breaks=round(seq(0, 2*pi, by=pi/4),2), expand=c