New York Times API Chart Illustration

2 views
Skip to first unread message

Matthew Bascom

unread,
Oct 26, 2009, 9:41:44 PM10/26/09
to Bay Area R Helpers
Hello HelpeRs,
 
Attached is code to implement New York Times' data API.
 
How do I adjust the x-axis to something more meaningful?  The layout provided is pretty difficult to read.
 
The code requires the rjson package.  I tried installing the omegahat RJSONIO, but did not get it to work.
 
Request a New York Times Article API key.  (See the attached code - comments at top.)  It's FREE!!!
 
I tried converting the dat.all variable to as.Date format, but still didn't have luck changing the axis.  Ideally, I'd like small tick marks on a daily scale ("-0.2"...) and the regular-sized ticks for all the dates that are illustrated, ideally with the first and last dates in the series being illustrated. 
 
Your help is appreciated!! 
 
Thank you, all.
 
Matt


Text Mining the New York Times.txt

Ted Dunning

unread,
Oct 26, 2009, 9:52:14 PM10/26/09
to Matthew Bascom, Bay Area R Helpers

Can you say a bit about who wrote this code and where you got it?

2009/10/26 Matthew Bascom <mattb...@gmail.com>



--
Ted Dunning, CTO
DeepDyve

Matthew Bascom

unread,
Oct 26, 2009, 9:56:36 PM10/26/09
to Ted Dunning, Bay Area R Helpers
Hi Ted,
 
It says where the code comes from in the attached file.
 
- Matt
 


 
2009/10/26 Matthew Bascom <mattb...@gmail.com>
Reply all
Reply to author
Forward
0 new messages