R/graph_plot.R

Defines functions graph_plot.gslope graph_plot

Documented in graph_plot graph_plot.gslope

#' @title Plot graph for gslope.
#'
#' @param x an object of class `'gslope'`
#'
#' @return Draw graph.
#'
#' @examples
#' w = gslope(as.matrix(mtcars))
#' graph_plot(w)
#' @export

graph_plot <- function(x){
  UseMethod('graph_plot')
}

#' @rdname graph_plot
#' @export
#'
graph_plot.gslope = function(x){
  graph = x$graph
  plot.igraph(graph,layout = layout.circle, vertex.size = 25)
}
StatsIMUWr/gslope documentation built on Oct. 8, 2020, 1:25 a.m.