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

R ProgrammingServer Side ProgrammingProgramming

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

raja
Published on 14-Oct-2020 14:38:39
Advertisements