Skip to content

Commit

Permalink
Merge pull request #70 from acastroaraujo/patch-1
Browse files Browse the repository at this point in the history
Minor fix to plots.R
  • Loading branch information
alexpghayes authored Dec 6, 2023
2 parents 1eb2878 + 2139b3e commit dcd5f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ plot_svd_u <- function(fa, factors = 1:min(5, fa$rank)) {
leverage = purrr::pmap_dbl(., sum)
) %>%
dplyr::sample_n(min(nrow(.), 1000), weight = leverage^2) %>%
dplyr::mutate(node = row_number()) %>%
dplyr::mutate(node = dplyr::row_number()) %>%
tidyr::gather(eigen, value, -node) %>%
ggplot2::ggplot(ggplot2::aes(node, value)) +
ggplot2::geom_line() +
Expand All @@ -92,7 +92,7 @@ plot_svd_v <- function(fa, factors = 1:min(5, fa$rank)) {
leverage = purrr::pmap_dbl(., sum)
) %>%
dplyr::sample_n(min(nrow(.), 1000), weight = leverage^2) %>%
dplyr::mutate(node = row_number()) %>%
dplyr::mutate(node = dplyr::row_number()) %>%
tidyr::gather(eigen, value, -node) %>%
ggplot2::ggplot(ggplot2::aes(node, value)) +
ggplot2::geom_line() +
Expand Down

0 comments on commit dcd5f1b

Please sign in to comment.