myfirstfun | R Documentation |
This instructs the student on the basics of function making
myfirstfun(x, ...)
x |
This is the name of a vector |
... |
extra arguments which will be sent to the corresponding ... in this case the plot function |
Welcome to STATS at OU – we will be learning R from the ground up. RAR man!
A list of x and y data in vector form and a matrix of the same as well as a plot of the data
Learn every part of this simple but important function.
Where does the name of the function go?
What does the ellipsis do?
How long is the object y
in relation to x
?
Where do you find more information about plot
?
What is a list?
what does the function return
do?
plot
####### some examples #### data <- 1:40 myfirstfun(x = data, pch=21, bg="Blue", cex = 2.4) # x data and extra options to send to plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.