Algoteka
Log in to submit your own samples!

Plot a Line Graph

Problem by oml1111
# Tech tags Title Creator Created date
1 0
2022-12-15 20:49
View all samples for this language (1 verified and 0 unverified)

Solution | R |

By oml1111 |
0 likes

Renders the following line graph:
R line graph

Code

plot(c(1, 2, 3, 5), c(2, 5, 4, 6), type = "l")

Further reading

Plotting line graphs in R - mathinsight.org

References

functions
graphics::plot rdocumentation.org

Problem Description

Render a line graph. Include a picture of the line graph in the specification.

View sample discussion (0 comments)
View problem discussion (0 comments)