Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (5.3k points)
edited by

What are the alternatives for drawing a simple curve for a function like

eq = function(x){x*x}

in R?

1 Answer

0 votes
by
edited by

To plot a function curve in R, you can so the following:

eq = function(x){x*x}

plot(eq(1:1000), type='l')

image

If you want to learn more about R programming watch this tutorial on Introduction to Data Science with R

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...