Navigation: Jump to content areas:


Pro Quality. Fan Perspective.
Login-facebook
Around SBN: Trent Richardson Interviews Fellow Brown Brandon Weeden

Teamheatlarge

Trying to learn R. A heatmap of very basic offensive statistics.

White (higher value) -> dark red (lower value)

Full size - http://www.baycityball.com/wordpress/wp-content/uploads/2010/08/teamheatlarge.png

almost 2 years ago Richmelky_tiny xanthan 17 comments 0 recs  | 

Story-email Email Printer Print

Comments

Display:

Also, do we have any R users here? Any good links for learning? I’ve got Baseball Hacks kicking around here but I haven’t had much time to read it. I’ve heard it’s good for getting into R.

Ask me about my blog.

by xanthan on Aug 27, 2010 4:18 PM PDT reply actions  

I used R some years ago (never mastered it though), and it’s useful, but one of my least favorite things about it is the name. “R” is not good for internet searches. Nowadays I use Matlab for everything, which has its pros and its cons. My only advice would be what I give to anyone learning to code in a new language: find some working code that does things similar to what you want to do, figure it out (mostly using google to understand the functions that are used), and piece together what you need for your own code. Then keep repeating that process. I don’t like tutorials much, and find books to be a much slower reference than the internet.

Osiris, Lord of the Dead, and relief pitcher for the Fresno Grizzlies.

by neurofarm on Aug 28, 2010 11:42 AM PDT up reply actions  

wouldn't hr/ab be a better measure?

It looks like Buster’s 10 hr are being counted as if he had played as many games as any other starter.

Beautiful chart though. I would choose a different cross section of stats, but that’s just me.

"The BB's are out. The BB's are being arseholes to me." - Brian Wilson.

by hairball on Aug 27, 2010 4:33 PM PDT reply actions  

n/m

just read your actual blog entry. should have known better than to question xanthan.

"The BB's are out. The BB's are being arseholes to me." - Brian Wilson.

by hairball on Aug 27, 2010 4:34 PM PDT up reply actions  

Yeah, I’ll do a more ‘advanced’ one when I pull the numbers. This was just a test run type of thing.

Ask me about my blog.

by xanthan on Aug 27, 2010 4:41 PM PDT up reply actions  

I think you should frame that fine work and submit it to that gallery Say Hey Nation is on the warpath with.

Utter frustration and futility.
Adopted 'nephew' to the ever avuncular and always awesome Jon Miller

by Johnny Disaster on Aug 27, 2010 4:38 PM PDT reply actions  

I love it.

Reminds me of flipflopflyball.com. If you can put the actual numbers inside the squares in a way that’s legible this could be a great way to a compare players and teams at a glance.

Status: Feels so broke up. Wants to go home. || Still boycotting Johnsonville and Giants souvenirs or ballpark foods for repossessing my K Wall in right field.

by GiantBrass on Aug 27, 2010 6:57 PM PDT reply actions  

I cheated and used Excel for this.

Ask me about my blog.

by xanthan on Aug 27, 2010 9:32 PM PDT up reply actions  

Xanthan:

Maker of graphs that are difficult for me to look at.

All I see are adobe swatches.

Proud Adoptive Parent of Jesus Guzman, RHP. 2010 Line: 0 H, 2 BB, 0.00 ERA. CALL HIM UP!

Bochy: What’s this fancy stat here?
IT Guy: That’s how often they get on base. I do not know why you keep asking me, I am here to fix your server.

by scout6 on Aug 27, 2010 7:09 PM PDT reply actions  

I think I get your graph, but where are all the white squares???

by Mrbasepaul on Aug 27, 2010 9:45 PM PDT reply actions  

Or not graph, whatever the heck you’d call it. a heatmap?

by Mrbasepaul on Aug 27, 2010 9:46 PM PDT up reply actions  

It’s an abstract exploration of the tension between red and yellow.

Utter frustration and futility.
Adopted 'nephew' to the ever avuncular and always awesome Jon Miller

by Johnny Disaster on Aug 27, 2010 11:28 PM PDT up reply actions  

I guess there was lots of dark red against the Dbags tonight.

Buster Posey: Let's enjoy him before he goes to the Yankees.

by rxmeister on Aug 27, 2010 10:06 PM PDT via mobile reply actions  

My eyes hurt. In a good way.

Hensley "Bam Bam" Meulens!
Better than you! Mejor que tú! Beter dan jij! 良い場合も! Mehor than abo!
"The trouble with baseball is that it is not played the year round." - Gaylord Perry

by GrahamCrakalaka on Aug 29, 2010 8:58 PM PDT reply actions  

That’s actually very pretty.

by sakbaum on Aug 29, 2010 9:57 PM PDT reply actions  

Comments For This Post Are Closed


User Tools

Welcome to the SB Nation blog about San Francisco Giants.
Yahoo_full_count

Manager

174246766_ea2fd78204_small Grant Brisbee

Moderators

Sbzito_small Natto

Fawlty_small WalrusMan

Goofus_small Goofus

Howtheyscoredcat_small howtheyscored

Det_7193_small jponry

Authors

09_small JT Jordan

Small steve S

E6dmccicon_small Every6thDay