how to plot ellipse given a general equation in R?
问题 Ellipse general equation: a * x ^ 2 + b * y ^ 2 + c * x * y + d * x + e * y + f = 0 回答1: We can start from the parametric equation of an ellipse (the following one is from wikipedia), we need 5 parameters: the center (xc, yc) or (h,k) in another notation, axis lengths a, b and the angle between x axis and the major axis phi or tau in another notation. xc <- 1 # center x_c or h yc <- 2 # y_c or k a <- 5 # major axis length b <- 2 # minor axis length phi <- pi/3 # angle of major axis with x