-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into radiate + correct le roux name
- Loading branch information
Showing
16 changed files
with
75 additions
and
43 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,21 +1,30 @@ | ||
#' @title Biplot theme | ||
#' @title Scaffolding theme | ||
#' | ||
#' @description Omit coordinate visual aids from biplots. | ||
#' @description Omit cartesian coordinate visual aids. | ||
#' | ||
#' @details | ||
#' @details Geometric data analysis concerns the intrinsic geometry of data. | ||
#' Analyses often use artificial or arbitrary coordinate systems that carry no | ||
#' useful interpretation but instead serve as scaffolding, especially for | ||
#' graphical elements like [axes][geom_axis] that represent other variables | ||
#' (Gardner, 2001). In such cases, the visual aids (tick marks and labels, | ||
#' grid lines) used to recover the coordinates of the row and column markers | ||
#' would add unnecessary clutter and should be omitted. This partial theme | ||
#' updates the current theme by removing these elements. The biplot theme is | ||
#' an alias included for convenience and backward compatibility. | ||
#' | ||
#' Because the artificial axes often go uninterpreted, biplots may omit the | ||
#' visual aids (tick marks and labels, grid lines) used to recover the | ||
#' artificial coordinates of the row and column markers The biplot (partial) | ||
#' theme removes these elements from the current theme. This can be especially | ||
#' helpful when plotting [axes][geom_axis()] or [isolines][geom_isoline()]. | ||
#' | ||
|
||
#' @template ref-gardner2001 | ||
|
||
#' @return A ggplot [theme][ggplot2::theme]. | ||
#' @export | ||
theme_biplot <- function() { | ||
theme_scaffold <- function() { | ||
theme( | ||
axis.ticks = element_blank(), | ||
axis.text = element_blank(), | ||
panel.grid = element_blank() | ||
) | ||
} | ||
|
||
#' @rdname theme_scaffold | ||
#' @export | ||
theme_biplot <- theme_scaffold |
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
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
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,6 @@ | ||
#' @references | ||
#' | ||
#' Gardner S (2001) _Extensions of biplot methodology to discriminant analysis | ||
#' with applications of non-parametric principal components_. PhD thesis, | ||
#' Stellenbosch University. <http://hdl.handle.net/10019.1/52264> | ||
#' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.