- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

We can do this by using lines function after plotting the first chart.

> x <- seq(-3, 3, 0.025) > X1 <- pnorm(x) > X2 <- pnorm(x, 2, 1) > plot(x, X1, type="l",col="red", ylab="X") > lines(x, X2, col="green")

- Related Questions & Answers
- Plot two horizontal bar charts sharing the same Y-axis in Python Matplotlib
- How to create a plot with dashed regression line in base R?
- How to plot two violin plot series on the same graph using Seaborn?
- How to create ACF plot in R?
- How to create a line chart in R using plot function with larger width?
- How to create a line that passes through specified points in an R plot?
- How to create vertical line for X variable at median in base R plot
- How to create horizontal line for Y variable at median in base R plot?
- How to create the combination of rows in two data frames having same columns in R?
- How to create a vertical line in a time series plot in base R?\n
- How to plot two histograms together in R?
- How to show a bar and line graph on the same plot in Matplotlib?
- How to create a staircase plot in R?
- How to create correlation matrix plot in R?
- How to use GridBagConstraints to layout two components in the same line with Java

Advertisements