Displaying 2 results from an estimated 2 matches for "ppg2008".
Did you mean:
pp200
2012 Apr 26
1
Heatmap fidelity
...n using heatmap. Even though the diagonal of my
matrix is all the same value, the diagonal of my heatmap is not all the same
color. Any suggestions?
Here is some reproducible code:
#########################################
# Get data
nba <- read.csv("http://datasets.flowingdata.com/ppg2008.csv", sep=",")
# Reorder
nba <- nba[order(nba$PTS),]
# Name the rows and then eliminate the 1st row
row.names(nba) <- nba$Name
nba <- nba[,2:20]
# nba2 <- nba[1:10,] ## use these if you only want to look @ 10 players
# Compute how "similar" playe...
2012 Jul 06
2
Error in plot.new() : figure margins too large
Hello All,
I am running the following code in RStudio, and I keep on getting an error message that says: "Error in plot.new() : figure margins too large"
Is there something that I am doing wrong?
# Import Data
nba <- read.csv("http://datasets.flowingdata.com/ppg2008.csv", sep=",")
nba
#Sort Data (sorting by Points, but could be sorting by any other variable)
nba <- nba[order(nba$PTS),]
#Prepare Data: makes rows by player name instead of Row Number
row.names(nba) <- nba$Name
#Prepare Data: don't need first column anymore, so we get ri...