Created
March 7, 2022 13:33
-
-
Save MJacobs1985/a10da5a764cdedfda4da249551fb892f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
nums <- unlist(lapply(dataset, is.numeric)) | |
datasetnums<-dataset[ , nums] | |
TSdist::EuclideanDistance(dataset$VCO2i, dataset$Hb) | |
diss <- TSdist::TSDatabaseDistances(datasetnums, distance="euclidean", diag=T, upper=T) %>% | |
as.matrix() | |
diss %>% | |
reshape::melt() %>% | |
ggplot2::ggplot()+ | |
ggplot2::geom_tile(ggplot2::aes(x = X1, y = X2, fill = value))+ | |
ggplot2::scale_fill_viridis_c() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment