- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to delete lines after creating a line chart with points in base R?
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
Create the vectors and line chart with 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) −
Output
Create the points chart without lines
Use plot function to create the point chart without lines as shown below −
x<-1:10 y<-sample(1:100,10) plot(x,y)
Output
- Related Articles
- 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?
- How to create pie chart in base R with labels?
- 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?
- JavaFX line chart example with multiple series (lines)
- How to create pie chart in base R?
- Creating Attractive First Lines with CSS ::first-line
- How to add drop lines in an Excel line chart?
- How to create a point chart with empty points using ggplot2 in R?
- How to create a line chart using ggplot2 with larger width 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 line chart in R using plot function with larger width?
- How to create horizontal lines with two different colors after a threshold in R?

Advertisements