Skip to content

Commit

Permalink
Show plots in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
YuhangTom committed Sep 24, 2023
1 parent 9a43438 commit 0c2ecca
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 16 deletions.
3 changes: 2 additions & 1 deletion R/vec_align_sigs_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
#' concavity = concavity, ifsave = FALSE, dir_name = NULL, ifplot = FALSE)
#'
#' x3p_bin_rotate <- x3p_vertical(x3p_inner_impute, min_score_cut = 0.1)
#' vec_align_sigs_list(x3p_raw_sig_vec(x3p_bin_rotate), x3p_shift_sig_vec(x3p_bin_rotate))
#' vec_align_sigs_list(x3p_raw_sig_vec(x3p_bin_rotate), x3p_shift_sig_vec(x3p_bin_rotate),
#' ifplot = TRUE)
#'
vec_align_sigs_list <- function(
sig1,
Expand Down
2 changes: 1 addition & 1 deletion R/x3p_MLE_angle_vec.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' x3p_inner_impute <- x3p_impute(x3p_inner_nomiss_res, x3p, mask_col = mask_col,
#' concavity = concavity, ifsave = FALSE, dir_name = NULL, ifplot = FALSE)
#'
#' x3p_MLE_angle_vec(x3p_inner_impute, min_score_cut = 0.1)
#' x3p_MLE_angle_vec(x3p_inner_impute, min_score_cut = 0.1, ifplot = TRUE)
#'
#'
x3p_MLE_angle_vec <- function(x3p, ntheta = 720, min_score_cut = 0.1,
Expand Down
2 changes: 1 addition & 1 deletion R/x3p_impute.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#' x3p_inner_nomiss_res <- df_rmtrend_x3p(insidepoly_df)
#'
#' x3p_inner_impute <- x3p_impute(x3p_inner_nomiss_res, x3p, mask_col = mask_col,
#' concavity = concavity, ifsave = FALSE, dir_name = NULL, ifplot = FALSE)
#' concavity = concavity, ifsave = FALSE, dir_name = NULL, ifplot = TRUE)
#' x3p_inner_impute
#'
#' if (interactive()) {
Expand Down
2 changes: 1 addition & 1 deletion R/x3p_quantile_angle_vec.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' x3p_inner_impute <- x3p_impute(x3p_inner_nomiss_res, x3p, mask_col = mask_col,
#' concavity = concavity, ifsave = FALSE, dir_name = NULL, ifplot = FALSE)
#'
#' x3p_quantile_angle_vec(x3p_inner_impute, min_score_cut = 0.1)
#' x3p_quantile_angle_vec(x3p_inner_impute, min_score_cut = 0.1, ifplot = TRUE)
#'
#'
x3p_quantile_angle_vec <- function(x3p, ntheta = 720, min_score_cut = 0.1,
Expand Down
2 changes: 1 addition & 1 deletion R/x3p_raw_sig_vec.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' concavity = concavity, ifsave = FALSE, dir_name = NULL, ifplot = FALSE)
#'
#' x3p_bin_rotate <- x3p_vertical(x3p_inner_impute, min_score_cut = 0.1)
#' x3p_raw_sig_vec(x3p_bin_rotate) %>%
#' x3p_raw_sig_vec(x3p_bin_rotate, ifplot = TRUE) %>%
#' str()
#'
x3p_raw_sig_vec <- function(x3p, method = "median", ifplot = FALSE) {
Expand Down
6 changes: 4 additions & 2 deletions R/x3p_shift_sig_vec.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
#' concavity = concavity, ifsave = FALSE, dir_name = NULL, ifplot = FALSE)
#'
#' x3p_bin_rotate <- x3p_vertical(x3p_inner_impute, min_score_cut = 0.1)
#' x3p_shift_sig_vec(x3p_bin_rotate) %>%
#' str()
#' if (interactive()) {
#' x3p_shift_sig_vec(x3p_bin_rotate, ifplot = TRUE) %>%
#' str()
#' }
#'
x3p_shift_sig_vec <- function(x3p, method = "median", ifplot = FALSE, delta = -5:5) {
y <-
Expand Down
2 changes: 1 addition & 1 deletion R/x3p_vertical.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' x3p_inner_impute <- x3p_impute(x3p_inner_nomiss_res, x3p, mask_col = mask_col,
#' concavity = concavity, ifsave = FALSE, dir_name = NULL, ifplot = FALSE)
#'
#' x3p_bin_rotate <- x3p_vertical(x3p_inner_impute, min_score_cut = 0.1)
#' x3p_bin_rotate <- x3p_vertical(x3p_inner_impute, min_score_cut = 0.1, ifplot = TRUE)
#' x3p_bin_rotate
#'
#' if (interactive()) {
Expand Down
3 changes: 2 additions & 1 deletion man/vec_align_sigs_list.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/x3p_MLE_angle_vec.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/x3p_impute.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/x3p_quantile_angle_vec.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/x3p_raw_sig_vec.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions man/x3p_shift_sig_vec.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/x3p_vertical.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c2ecca

Please sign in to comment.