charts - Deedle - plotting grouped data -


I want to plot the grouped data placed in the deadli frame.

For example, start with:

  let's fr = frame.off column ["name" =? & Gt; Series [(1, "A"); (2, "b"); (3, "c"); (4, "c"); (5, "c")] "data" =? & Gt; Series [(1, 11); (2, 12); (3, 13); (4, 10); (5, 7)] "Order" =? & Gt; Series [(1, 1); (2, 1); (3, 1); (4, 2); (5, 3)]] | & Gt; Frame.groupRowsByString "name"  

I would like to chart this chart in some way. Line + chart ends with a consolidation and a conspiracy that will show trends for the grouped series. / P>

Is there no box solution in it or do I need to manually unpack the frame in the list of observations?

Do I think it correctly that you have a line chart for each group based on the name Want to drag (a line chart for name, i.e. a , a name b , etc.)?

In that case, you can use Frame.nest to create a series of frames - the outer chain will be indexed in the first part of the index (name) and the nested frame. The values ​​of each group will be included.

Then you can get an overview (group name with a frame) and plot the values ​​for it. Each group can be used by Chart.Line and then this line Add to the chart sequence:

  fr. & Gt; Frame.nest | & Gt; Chain. Blogs | & Gt; Seq.map (funny (k, frame) -> chart.line (frame? Data, name = k)). & Gt; Chart.Combine | & Gt; Chart. Lidend ()  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -