scatter - Write using mouse on R plot? -


I type in the plot () function.

Using scatter gm is there any possibility of drawing on this graph?

I would like to add a straight line and get its parameters, but in my opinion abline () can be inconvenient (I

Itemprop = "text">

Take a look at RStudio and this example:

  Library (Manipulation) data = matrix (rnorm (20), ncol = 2) example & lt; - function (data, a, b) {plot (data [, 1], data [, 2]) abline (a = a, B = b)} manipulation (example (data, a, b), a = slider (-5, 5), b = slider (-5,5))   

on this plot One no Line, and will allow you to slope and block it.

It was inspired by the example of this page:

Note that it requires RStudio to be installed (this For more information, go to

Locator with other solutions in Base R. Can be done.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -