![]() You can review how to customize all the available arguments in our tutorial about creating plots in R.Ĭonsider the model Y = 2 3X^2 \varepsilon, being Y the dependent variable, X the independent variable and \varepsilon an error term, such that X \sim U(0, 1) and \varepsilon \sim N(0, 0.25). You can also specify the character symbol of the data points or even the color among other graphical parameters. Passing these parameters, the plot function will create a scatter diagram by default. You can create scatter plot in R with the plot function, specifying the x values in the first argument and the y values in the second, being x and y numeric vectors of the same length.
0 Comments
Leave a Reply. |