-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6316554
commit 33f7a86
Showing
12 changed files
with
136 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ Imports: | |
graphics, | ||
grDevices, | ||
isopleuros (>= 1.2.0), | ||
khroma (>= 1.13.0), | ||
methods, | ||
MASS, | ||
stats, | ||
|
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
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,9 +1,13 @@ | ||
## Data from Day et al. 2011 | ||
data("kommos", package = "folio") # Coerce to compositional data | ||
kommos <- remove_NA(kommos, margin = 1) # Remove cases with missing values | ||
coda <- as_composition(kommos) # Use ceramic types for grouping | ||
coda <- as_composition(kommos) | ||
|
||
## Log ratio | ||
clr <- transform_clr(coda) | ||
plot(clr, groups = NULL, flip = TRUE, border = "black", col = NA) | ||
|
||
## Density plot | ||
plot(clr, groups = NULL, flip = TRUE) | ||
|
||
## Use ceramic types for grouping | ||
plot(clr, groups = "type", flip = TRUE) |
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,7 +1,10 @@ | ||
## Data from Day et al. 2011 | ||
data("kommos", package = "folio") # Coerce to compositional data | ||
kommos <- remove_NA(kommos, margin = 1) # Remove cases with missing values | ||
coda <- as_composition(kommos) # Use ceramic types for grouping | ||
coda <- as_composition(kommos, parts = 3:8) | ||
|
||
plot(coda[, 1:6, drop = FALSE], groups = "type") | ||
plot(coda[, 1:6, drop = FALSE], groups = NULL) | ||
## Use ceramic types for grouping | ||
plot(coda, groups = "type") | ||
|
||
## Center and scale ternary plots | ||
plot(coda, groups = NULL, center = TRUE, scale = TRUE) |
Oops, something went wrong.