Solved

Using mathematica to plot Histogram - frequence count of monthly data

Posted on 2011-09-23
2
544 Views
Last Modified: 2012-08-13
I have the data below - how would I plot it so that each bin shows the total count for the monthly date?

{{{2009, 8, 3}, 18.}, {{2009, 9, 1}, 31.}, {{2009, 10, 1},
  26.}, {{2009, 11, 2}, 30.}, {{2009, 12, 1}, 57.}, {{2010, 1, 4},
  63.}, {{2010, 2, 1}, 55.}, {{2010, 3, 1}, 103.}, {{2010, 4, 1},
  75.}, {{2010, 5, 3}, 237.}, {{2010, 6, 1}, 37.}, {{2010, 7, 1},
  189.}, {{2010, 8, 2}, 267.}, {{2010, 9, 1}, 315.}, {{2010, 10, 1},
  184.}, {{2010, 11, 1}, 139.}, {{2010, 12, 1}, 58.}, {{2011, 1, 3},
  73.}, {{2011, 2, 1}, 74.}, {{2011, 3, 1}, 119.}, {{2011, 4, 1},
  76.}, {{2011, 5, 2}, 142.}, {{2011, 6, 1}, 176.}, {{2011, 7, 1},
  245.}, {{2011, 8, 1}, 927.}, {{2011, 9, 1}, 3.}}
0
Comment
Question by:John_2357
2 Comments
 
LVL 3

Accepted Solution

by:
azserrata earned 500 total points
Comment Utility
Hi John

You might want to find out how to map functions to lists: http://reference.wolfram.com/mathematica/guide/ApplyingFunctionsToLists.html

In conjunction with a PLOT function like: http://reference.wolfram.com/mathematica/ref/BarChart.html

Sorry for not being much specific but I think a solution might come from there.

Cheers
David

0
 
LVL 1

Author Closing Comment

by:John_2357
Comment Utility
I was looking for some code. I have been to these sites and this link and I am unable to figure it out.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
for loop with Set 4 45
Homework Math Question 1 58
Controlled Assessment GCSE - desperate help needed 4 48
Currency Conversion? 1 34
Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now