Within the plot.lars code, change the type argument to matplot from 'b' to 'l':

library(lars)
myplot.lars <- edit(plot.lars)
#change type = 'b' to type = 'l' in the call to matplot
data(diabetes)
object <- with(diabetes,  lars(x,y))
myplot.lars(object, lty = 1, breaks = FALSE)


hth,
Kingsford Jones


On Tue, Oct 27, 2009 at 11:11 AM, Russell Ivory
<russell.iv...@merrickbank.com> wrote:
> When plotting a lars object, I cannot find a way to plot solid lines.
> Even when the arguments breaks=F and lty="solid" are used, the vertical
> lines at the break points do not plot but asterisks indicating the
> breaks still plot as part of each path leaving solid lines broken up by
> asterisks at the break points.  I'm using the following code.
>
>
>
> larsfit <- lars(X,y,type="lasso")
>
> larsfit
>
> plot(larsfit,breaks=F,lty="solid")
>
>
>
> Any suggestions in removing the asterisks and plotting truly solid
> lines?
>
>
>
> Thanks
>
>
>
> Russell Ivory
>
> AVP Senior Modeling Manager
>
> Merrick Bank
>
> 10705 South Jordan Gateway
>
> South Jordan, UT 84095
>
> 801 545-6640 office
>
> 801 545-6340 fax
>
>
>
>
>
>
>
>
>
> ****************************************************************************This
>  e-mail and any files transmitted with it are confidential and are intended 
> solely for the use of the individual or entity to whom it is addressed. If 
> you are not the intended recipient or the person responsible for delivering 
> the e-mail to the intended recipient, be advised that you have received this 
> e-mail in error, and that any use, dissemination, forwarding, printing, or 
> copying of this e-mail is strictly prohibited. If you received this e-mail in 
> error, please return the e-mail to the sender at Merrick Bank and delete it 
> from your computer. Although Merrick Bank attempts to sweep e-mail and 
> attachments for viruses, it does not guarantee that either are virus-free and 
> accepts no liability for any damage sustained as a result of viruses.
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to