0 votes
1 view
in R Programming by (5.3k points)

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 (25.3k points)
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
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...