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
| #### Multidimensional Scaling aka Principal Coordinates Analysis | |
| # Multidimensional scaling takes a set of dissimilarities and returns a set of points such that the | |
| # distances between the points are approximately equal to the dissimilarities. | |
| ### Example 1 - from rbloggers - http://www.r-bloggers.com/multidimensional-scaling-mds-with-r/ | |
| #get data |
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
| weight | feed | |
|---|---|---|
| 179 | horsebean | |
| 160 | horsebean | |
| 136 | horsebean | |
| 227 | horsebean | |
| 217 | horsebean | |
| 168 | horsebean | |
| 108 | horsebean | |
| 124 | horsebean | |
| 143 | horsebean |
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
| "X","count.x","abv","ibu","id","beer","style","brewery_id","ounces","style2","count.y","brewery","city","state","label" | |
| 1,1,0.05,NA,1436,"Pub Beer","American Pale Lager",408,12,NA,409,"10 Barrel Brewing Company","Bend","OR","Pub Beer (10 Barrel Brewing Company)" | |
| 2,2,0.066,NA,2265,"Devil's Cup","American Pale Ale (APA)",177,12,"American Pale Ale (APA)",178,"18th Street Brewery","Gary","IN","Devil's Cup (18th Street Brewery)" | |
| 3,3,0.071,NA,2264,"Rise of the Phoenix","American IPA",177,12,"American IPA",178,"18th Street Brewery","Gary","IN","Rise of the Phoenix (18th Street Brewery)" | |
| 4,4,0.09,NA,2263,"Sinister","American Double / Imperial IPA",177,12,"American Double / Imperial IPA",178,"18th Street Brewery","Gary","IN","Sinister (18th Street Brewery)" | |
| 5,5,0.075,NA,2262,"Sex and Candy","American IPA",177,12,"American IPA",178,"18th Street Brewery","Gary","IN","Sex and Candy (18th Street Brewery)" | |
| 6,6,0.077,NA,2261,"Black Exodus","Oatmeal Stout",177,12,NA,178,"18th Street Brewery","Gary","IN","Black Exodus (18th S |
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
| Species | Country | Value | |
|---|---|---|---|
| Mammals | Australia | 41 | |
| Mammals | Austria | 6 | |
| Mammals | Belgium | 2 | |
| Mammals | Canada | 11 | |
| Mammals | Czech Republic | 1 | |
| Mammals | Denmark | 2 | |
| Mammals | Finland | 4 | |
| Mammals | France | 4 | |
| Mammals | Germany | 10 |
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
| library(randomNames) | |
| library(networkD3) | |
| library(igraph) | |
| set.seed(3) | |
| nl = 100 | |
| df = data.frame(source = randomNames(1000,which.names='both', name.order = 'first.last', name.sep=' '), target = '') | |
| df = df[rep(seq_len(nrow(df)), sample(1:10,nrow(df), replace=T)),] | |
| df = df[sample(nrow(df),nl),] | |
| df$target = sample(df$source,nrow(df), replace = T) |
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
| ### Example Viridis Plot | |
| library(ggplot2) | |
| library(viridis) | |
| library(season) | |
| library(gridExtra) | |
| pa<-ggplot(schz, aes(year, month, fill = SczBroad)) + | |
| geom_tile(colour="gray20", size=1.5, stat="identity") + | |
| scale_fill_viridis(option="A") + |
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
| type | sat_fat | polysat_fat | monosat_fat | protein | carb | chol | fiber | kcal | |
|---|---|---|---|---|---|---|---|---|---|
| blue | 18.669 | 0.8 | 7.778 | 21.4 | 2.34 | 75 | 0 | 353 | |
| brick | 18.764 | 0.784 | 8.598 | 23.24 | 2.79 | 94 | 0 | 371 | |
| brie | 17.41 | 0.826 | 8.013 | 20.75 | 0.45 | 100 | 0 | 334 | |
| camembert | 15.259 | 0.724 | 7.023 | 19.8 | 0.46 | 72 | 0 | 300 | |
| caraway | 18.584 | 0.83 | 8.275 | 25.18 | 3.06 | 93 | 0 | 376 | |
| cheddar | 21.092 | 0.942 | 9.391 | 24.9 | 1.28 | 105 | 0 | 403 | |
| cheshire | 19.475 | 0.87 | 8.671 | 23.37 | 4.78 | 103 | 0 | 387 | |
| colby | 20.218 | 0.953 | 9.28 | 23.76 | 2.57 | 95 | 0 | 394 | |
| cottage,crmd,lrg or sml curd | 1.718 | 0.123 | 0.778 | 11.12 | 3.38 | 17 | 0 | 98 |
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
| Group | id1 | id2 | value | |
|---|---|---|---|---|
| 1 | A | A | 0 | |
| 1 | A | B | 15 | |
| 1 | A | C | 11 | |
| 1 | A | D | 8 | |
| 1 | B | A | 3 | |
| 1 | B | B | 0 | |
| 1 | B | C | 4 | |
| 1 | B | D | 2 | |
| 1 | C | A | 0 |
We can't make this file beautiful and searchable because it's too large.
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
| "animal_id","monthyear","name","color1","color2","sex","breed" | |
| "A685067",2014-08-14 18:45:00,"Lucy","blue","white","Female","domestic shorthair" | |
| "A678580",2014-06-29 17:45:00,"Frida","white","black","Female","domestic shorthair" | |
| "A675405",2014-03-28 14:55:00,"Stella Luna","black","white","Female","domestic mediumhair" | |
| "A684460",2014-08-13 15:04:00,"Elsa","brown",NA,"Female","domestic shorthair" | |
| "A686497",2014-08-31 15:45:00,"Chester","black",NA,"Male","domestic shorthair" | |
| "A687965",2014-10-31 18:29:00,"Oliver","orange",NA,"Male","domestic shorthair" | |
| "A668547",2013-12-16 13:59:00,"Preston","black","white","Male","domestic mediumhair" | |
| "A682393",2014-07-03 12:12:00,"Bumble","seal",NA,"Female","siamese" | |
| "A617061",2014-09-04 09:57:00,"Pumpkin","orange",NA,"Male","domestic mediumhair" |
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
| Date | Season | home | visitor | FT | hgoal | vgoal | division | tier | totgoal | goaldif | result | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2020-09-12 | 2020 | Crystal Palace | Southampton | 1-0 | 1 | 0 | 1 | 1 | 1 | 1 | H | |
| 2020-09-12 | 2020 | Fulham | Arsenal | 0-3 | 0 | 3 | 1 | 1 | 3 | -3 | A | |
| 2020-09-12 | 2020 | Liverpool | Leeds United | 4-3 | 4 | 3 | 1 | 1 | 7 | 1 | H | |
| 2020-09-12 | 2020 | West Ham United | Newcastle United | 0-2 | 0 | 2 | 1 | 1 | 2 | -2 | A | |
| 2020-09-13 | 2020 | Tottenham Hotspur | Everton | 0-1 | 0 | 1 | 1 | 1 | 1 | -1 | A | |
| 2020-09-13 | 2020 | West Bromwich Albion | Leicester City | 0-3 | 0 | 3 | 1 | 1 | 3 | -3 | A | |
| 2020-09-14 | 2020 | Brighton & Hove Albion | Chelsea | 1-3 | 1 | 3 | 1 | 1 | 4 | -2 | A | |
| 2020-09-14 | 2020 | Sheffield United | Wolverhampton Wanderers | 0-2 | 0 | 2 | 1 | 1 | 2 | -2 | A | |
| 2020-09-19 | 2020 | Arsenal | West Ham United | 2-1 | 2 | 1 | 1 | 1 | 3 | 1 | H |
NewerOlder