Created
August 5, 2017 13:37
-
-
Save dakni/b0387ebe7a59e2d57f894f44a30c50c1 to your computer and use it in GitHub Desktop.
just a test plot of ggjoy.
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
library(ggplot2) | |
ggplot(beta_test2, aes(x = si, y = as.factor(beta), fill = as.factor(degree))) + | |
ggjoy::geom_joy(scale = 2.5, rel_min_height=.01, alpha = .8, color = "white") + | |
ggjoy::theme_joy() + | |
theme(legend.position = "bottom") + | |
viridis::scale_fill_viridis(discrete=TRUE, | |
name = "Degree centrality") + | |
labs(x = "si", | |
y = expression(paste(beta," factor of power function")), | |
title = "Location attractiveness (si) in relation to degree-centrality and distance weight (beta) factors", | |
subtitle = "Connections based on Delaunay graph; Origins weighted equally; attractiveness equals degree centrality", | |
caption = "Data source: settlements in Harran Ovası, SE Turkey, digitized from Corona satellite images (acquisition dates ~1960-1970)") + | |
guides(fill=guide_legend(nrow = 1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment