You needed to store objects from qnorm()
and qcauchy()
. Try:
p <- seq(0, 1, .01)
q1 <- qnorm(p, mean = 0, sd = 1)
q2 <- qcauchy(p, location = 0, scale = 1)
plot(q1, q2, main = "Normal-Cauchy", xlab = "Normal", ylab = "Cauchy")
2
solved Error in seq.int(from, to, length.out = n) : ‘from’ must be a finite number [closed]