- 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

To delete lines after creating a line chart with points in base R we would need to create the points chart only, therefore, we can follow the below steps −

- First of all, create two vectors and create the line chart with points.
- Now, again create the line chart but without points

Use plot and lines function to create the line chart with points as shown below −

x<-1:10 y<-sample(1:100,10) plot(x,y) lines(x,y)

On executing, the above script generates the below output(this output will vary on your system due to randomization) −

Use plot function to create the point chart without lines as shown below −

x<-1:10 y<-sample(1:100,10) plot(x,y)

- Related Questions & Answers
- How to join points in a point chart with lines using ggplot2 in R?
- How to create multiple lines chart with unique line types in R?
- JavaFX line chart example with multiple series (lines)
- How to change the color of lines for a line chart using ggplot2 in R?
- How to create a line chart using ggplot2 with a vertical line in R?
- Creating Attractive First Lines with CSS ::first-line
- How to create a point chart with empty points using ggplot2 in R?
- How to create a plot with dashed regression line in base R?
- How to create a point chart in R with alternative points having different shape?
- How to create a scatterplot in base R with points depending on categorical column?
- How to create a line chart using ggplot2 with larger width in R?
- How to plot matrix columns as lines in base R?
- How to join points on a scatterplot with smooth lines in R using plot function?
- How to create a plot in base R with tick marks but excluding axes lines?
- How to create a line chart in R using plot function with larger width?

Advertisements