Wie zeichnet man einen Kreis in einem Log-Log-Plot in R?
Ich habe ein Diagramm mit zwei logarithmischen Achsen. Ich möchte einen Kreis zu einer bestimmten Position der Handlung hinzufügen. Ich habe versucht zu verwendenplotrix
, aber dies gibt keine Optionen für "log-radius".
# data to plot
x = 10^(-1 * c(5:0))
y = x ^-1.5
#install.packages("plotrix", dependencies=T)
# use require() within functions
library("plotrix")
plot (x, y, log="xy", type="o")
draw.circle(x=1e-2, y=1e2, radius=1e1, col=2)
Wie kann ich meinem Log-Log-Plot einen Kreis hinzufügen?