data(total)
# When mcnode has one variate
gghist(xV)
# When mcnode has two variates, the two plots will be saved in a list
# if affected to a variable
gplots <- gghist(xVUM)
# show the first variate plot of xVUM mcnode
gplots[[1]]
# directly show the first variate plot of xVUM mcnode
gghist(xVUM, which = 1) #directly show the first variate plot of xVUM mcnode
# Post process
gplots[[1]] + ggplot2::geom_histogram(color = "red",fill="blue")
Run the code above in your browser using DataLab