-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplified plotnet function by removing redundant code between methods
- Loading branch information
Showing
7 changed files
with
572 additions
and
756 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
% Generated by roxygen2 (4.1.1): do not edit by hand | ||
% Please edit documentation in R/NeuralNetTools_utils.R | ||
\name{bias_lines} | ||
\alias{bias_lines} | ||
\title{Plot connection weights for bias lines} | ||
\usage{ | ||
bias_lines(bias_x, bias_y, mod_in, nid, rel_rsc, all_out, pos_col, neg_col, | ||
struct, y_names, x_range, y_range, layer_x, line_stag, max_sp) | ||
} | ||
\arguments{ | ||
\item{bias_x}{numeric vector x axis locations for bias lines} | ||
|
||
\item{bias_y}{numeric vector y axis locations for bias lines} | ||
|
||
\item{mod_in}{neural network model object} | ||
|
||
\item{nid}{logical value indicating if neural interpretation diagram is plotted, default \code{TRUE}} | ||
|
||
\item{rel_rsc}{numeric value indicating maximum to rescale weights for plotting in a neural interpretation diagram. Default is \code{NULL} for no rescaling.} | ||
|
||
\item{all_out}{chr string indicating names of input variables for which connections are plotted, default all} | ||
|
||
\item{pos_col}{chr string indicating color of positive connection weights, default \code{'black'}} | ||
|
||
\item{neg_col}{chr string indicating color of negative connection weights, default \code{'grey'}} | ||
|
||
\item{struct}{numeric vector for network structure} | ||
|
||
\item{y_names}{chr string for names of output variables} | ||
|
||
\item{x_range}{numeric of x axis range for base plot} | ||
|
||
\item{y_range}{numeric of x axis range for base plot} | ||
|
||
\item{layer_x}{numeric indicating locations of layers on x axis} | ||
|
||
\item{line_stag}{numeric value that specifies distance of connection weights from nodes} | ||
|
||
\item{max_sp}{logical indicating if space is maximized in plot} | ||
} | ||
\description{ | ||
Plot connection weights for bias lines in \code{\link{plotnet}} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
% Generated by roxygen2 (4.1.1): do not edit by hand | ||
% Please edit documentation in R/NeuralNetTools_utils.R | ||
\name{bias_points} | ||
\alias{bias_points} | ||
\title{Plot bias points} | ||
\usage{ | ||
bias_points(bias_x, bias_y, layer_name, node_labs, x_range, y_range, circle_cex, | ||
cex_val, bord_col, circle_col) | ||
} | ||
\arguments{ | ||
\item{bias_x}{numeric vector of values for x locations} | ||
|
||
\item{bias_y}{numeric vector for y location} | ||
|
||
\item{layer_name}{string indicating text to put in node} | ||
|
||
\item{node_labs}{logical indicating of node labels are included} | ||
|
||
\item{x_range}{numeric of x axis range for base plot} | ||
|
||
\item{y_range}{numeric of y axis range for base plot} | ||
|
||
\item{circle_cex}{numeric value indicating size of nodes, default 5} | ||
|
||
\item{cex_val}{numeric value indicating size of text labels, default 1} | ||
|
||
\item{bord_col}{chr string indicating border color around nodes, default \code{'lightblue'}} | ||
|
||
\item{circle_col}{chr string indicating color of nodes} | ||
} | ||
\description{ | ||
Plot bias points in \code{\link{plotnet}} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
% Generated by roxygen2 (4.1.1): do not edit by hand | ||
% Please edit documentation in R/NeuralNetTools_utils.R | ||
\name{get_ys} | ||
\alias{get_ys} | ||
\title{Get y locations for layers in \code{\link{plotnet}}} | ||
\usage{ | ||
get_ys(lyr, max_sp, struct, y_range) | ||
} | ||
\arguments{ | ||
\item{lyr}{numeric indicating layer for getting y locations} | ||
|
||
\item{max_sp}{logical indicating if space is maximized in plot} | ||
|
||
\item{struct}{numeric vector for network structure} | ||
|
||
\item{y_range}{numeric vector indicating limits of y axis} | ||
} | ||
\description{ | ||
Get y locations for input, hidden, output layers in \code{\link{plotnet}} | ||
} | ||
|
Oops, something went wrong.