sellipse.coo {gdi} | R Documentation |
calculate coordinates for plotting a superellipse for visualizing body cross-sections
Description
calculate coordinates for plotting a superellipse for visualizing body cross-sections
Usage
sellipse.coo(k, res = 100)
Arguments
k |
superellipse exponent. |
res |
the desired resolution |
Value
a data frame containing
Examples
sellipse.coo(2.0)->df #get coordinates for normal ellipse (exponent k=2)
plot(df$x,df$y,col="black", type="l") #plot normal ellipse
sellipse.coo(2.3)->df2 # get coordinates for superellipse with exponent 2.3
lines(df$x,df$y, col="blue") #plot superellipse
[Package gdi version 1.6.0 Index]