user3091668 - 2 months ago 7

R Question

I would like to have a half circle instead a pyramid pattern in a R scatterplot. This is my current code to produce a pyramid:

`startx <- 101`

endx <- 200

x = seq(from=startx, to=endx, by=1)

inx = length(x)

y1 <- seq(from=1, to=inx, by=2)

y2 <- sort(y1, decreasing = TRUE)

y = c(y1, y2)

plot(x,y)

Some idea to change the dots distribution to represent a half circle instead?

Answer

Source (Stackoverflow)

Comments