powered by
Bar plot with customized title and labels. Y-Axis limits are fixed according to the range of the values in X.
custombar(X, iobs, plotname = "", ylabelname = "Contribution", xlabelname = "")
matrix with observations as row vectors.
index of the observations whose value will be displayed.
string with the title of the plot. Set to "" by default.
string with the y-axis label. Set to "Contribution" by default.
string with the y-axis label. Set to "" by default.
ggplot object with the values of a vector with a customized geom_col layer.
# NOT RUN { X <- as.matrix(X) custombar(X, 2) custombar(X, 2, plotname = "Observation 2", ylabelname = bquote(x.["j"]), xlabelname= "Variables") # }
Run the code above in your browser using DataLab