krutoacu.blogg.se

Teutonic knight age of empires
Teutonic knight age of empires







teutonic knight age of empires

The data came from the aoe2stats website, simply copied and pasted with datapasta Click here to see code block with raw data # paste and read data aocdedat head(aocdedat) library ( stringr ) # CRAN v1.4.0 library ( ggplot2 ) # CRAN v3.3.1 library ( scico ) # CRAN v1.1.0 library ( ggrepel ) # CRAN v0.8.2 library ( gghighlight ) # CRAN v0.3.0 library ( FactoMineR ) # CRAN v2.3 library ( tidytext ) # CRAN v0.2.4

teutonic knight age of empires teutonic knight age of empires

First, we need the following packages: library ( tidyr ) # CRAN v1.1.0 library ( unheadr ) # CRAN v0.2.1 library ( dplyr ) # v1. It’s not bad, but the different unit types appear as embedded subheaders, and a few variables contain compound values. The data on the site looks like this: click to enlarge

  • Adding text and arrow annotations to the plot to make the interpretation more explicit.
  • Text labels for points of the scatterplot with top and bottom values.
  • A somewhat hacky replacement of bars with crossbars for showing the contribution and correlations of the different variables to the PCA.
  • Leveraging gghighlight to show the relative position of different groups of observations in principal component space.
  • The plotting code here includes examples of: This brief exploration gave me chance to try out the new syntax in dplyr 1.0.0 and to create some explanatory figures that can help us interpret the typical scatterplots often made for the first two dimensions in a PCA.
  • Rearranging factor levels within groups.
  • teutonic knight age of empires

  • Extracting values from compound variables using regular expressions.
  • Placing embedded subheaders into their own variables.
  • The code in this post tackles many small issues that come up when getting a dataset ready for analysis and/or visualization. This post describes the various steps for reading and cleaning the data, followed by some visualization of the main outputs from a dimension reduction via Principal Component Analysis (PCA). It’s a great reference, but I wanted to explore the data further. While trying to understand why my friends beat me in Age of Empires II so often, I came across this









    Teutonic knight age of empires