How to create a chart by covering the area of the plot from bottom left to upper right in R?

R ProgrammingServer Side ProgrammingProgramming

Artificial Intelligence : The Future Of Programming

15 Lectures 54 mins

Beyond Basic Programming - Intermediate Python

Most Popular

36 Lectures 3 hours

C Programming from scratch- Master C Programming

Best Seller

60 Lectures 8 hours

The plot area in plot window is fixed by default and we can create a lint chart with extended width so that the chart covers the area of the plot from bottom left to upper right. This can be done by using very large width of the line chart with the help of lwd argument.

Consider the below vector and create the very wide line chart to cover the plot area −

Example

x<-1:10
plot(x,type="l",lwd=100)

Output

Create the very wide line chart to cover the plot area even more −

Example

plot(x,type="l",lwd=200)

Output

Updated on 14-Oct-2020 14:39:29