Re: [R] ggplot2: Controlling width of line

2015-10-30 Thread Jeff Newmiller
Not sure why you are making this so complicated. In what way is the following not meeting your expectations? ggplot( data=matz , aes( x = X1 , y = value , col=X2 , lty=X2 , shape=X2 , size=mylwd ) ) + geom_line() +

[R] ggplot2: Controlling width of line

2015-10-30 Thread Brian Smith
Hi, I was trying to increase the size of certain lines in my plot (samples 'B' and 'D' in example below). However, when I try to modify the line size, I seem to screw up the linetypes. Also, is there a way to reflect the line size in the legend? Here is some sample code for illustration: library