0 votes
1 view
in R Programming by (5k 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 (24.7k 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 

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...