Learn R Programming

personalized2part (version 0.0.1)

plot.hd2part: Plot method for hd2part fitted objects

Description

Plot method for hd2part fitted objects

Usage

# S3 method for hd2part
plot(
  x,
  model = c("zero", "positive"),
  xvar = c("loglambda", "norm", "lambda"),
  labsize = 0.6,
  xlab = iname,
  ylab = NULL,
  main = paste(model, "model"),
  ...
)

# S3 method for cv.hd2part plot(x, sign.lambda = 1, ...)

Arguments

x

fitted "hd2part" model object

model

either "zero" for the zero part model or "positive" for the positive part model

xvar

What is on the X-axis. "norm" plots against the L1-norm of the coefficients, "lambda" against the log-lambda sequence, and "dev" against the percent deviance explained.

labsize

size of labels for variable names. If labsize = 0, then no variable names will be plotted

xlab

label for x-axis

ylab

label for y-axis

main

main title for plot

...

other graphical parameters for the plot

sign.lambda

Either plot against log(lambda) (default) or its negative if sign.lambda = -1.

Examples

Run this code
# NOT RUN {
set.seed(123)

set.seed(123)

# }

Run the code above in your browser using DataLab