Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increasing the width of type "h" R plot

Tags:

plot

r

If I run this simple code:

x <- c(1:10)
y <- c(1:10)
plot(x,y,type="h")

the result contains very thin histogram lines.

my plot

Is there a way to make these lines thicker (other than using the hist() function itself)? They do not necessarily have to look like bars, just be a little thicker.

like image 599
Clint Avatar asked Jun 23 '16 21:06

Clint


1 Answers

Try this:

plot(x,y,type="h", lwd = 4)
like image 94
thepule Avatar answered Sep 30 '22 15:09

thepule