Question:
I’m performing permutations and running apply to plotabline
or lines from a linear model. But when using apply, I get “NULL” (but it draws the lines). How do I make the “NULL” go away and why is it doing that?Answer:
abline
return NULL, usually invisibly. Suggest writing the part from plot
onwards like this. Alternately use invisible(Map(...))
in the last line. No packages are used.If you have better answer, please add a comment about this, thank you!