Template:P450/Table

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
{{#graph:pie|size=450x200;title=Plant Orders;legend=0.0x0.1;label=;
 +
{{#lua:
 +
  T = {}; L = {}
 +
  for order in stdin:gmatch("[%a]+") do
 +
    if (T[order] == nil) then T[order] = 1; table.insert(L, order)
 +
    else T[order] = T[order] + 1 end
 +
  end
 +
  others = 0
 +
  for k,v in pairs(L) do
 +
    if (T[v] > 1) then print(v .."="..T[v]..";")
 +
    else others = others + 1 end
 +
  end
 +
  print("Others="..others..";")
 +
|
 +
{{#repeat:P450/Table/Row/GetOrder|1|{{{1}}} }}
 +
}} }}
 +
 
{{P450/Table/Header{{#bar:}}
 
{{P450/Table/Header{{#bar:}}
 
{{#repeat:P450/Table/Row{{#bar:}}1{{#bar:}}
 
{{#repeat:P450/Table/Row{{#bar:}}1{{#bar:}}

Revision as of 11:06, 21 June 2009

{{P450/Table/Header|

}}

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox