friendly / matlib

Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics
http://friendly.github.io/matlib/
65 stars 16 forks source link

label of plots in plotEqn() #22

Closed charlesjom closed 7 years ago

charlesjom commented 7 years ago

image

Is there a way to re-position the label of the plot lines from the plotEqn() function?

philchalmers commented 7 years ago

Re-positioning labels is generally not possible with base R plots such as these. The default of plotEqn() is to position the label at the first possible x-y pairing for each respective equation plotted, and if these locations are close then overlap will occur (as you are seeing here).

In this case, you could either try changing the window size of the R plot to try and make the equations overlap less through some trial and error, or pass plotEqn(..., labels = FALSE) and include the equations yourself manually. HTH.