Population Plot with R
Created: 2011-10-08 05:42:38
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Population histogram in R |
Descriptions (1)
This workflow fetches the details of the countries in the world and then uses R to produce a histogram of the log of their population |
Dependencies (0)
Processors (14)
Name |
Type |
Description |
getCountries |
wsdl |
Wsdlhttp://www.abundanttech.com/WebServices/Population/population.asmx?WSDLWsdl OperationgetCountries |
getCountries_output |
xmlsplitter |
|
getPopulation |
wsdl |
Wsdlhttp://www.abundanttech.com/WebServices/Population/population.asmx?WSDLWsdl OperationgetPopulation |
getPopulation_input |
xmlsplitter |
|
getPopulation_output |
xmlsplitter |
|
getPopulation_getPopulationResult |
xmlsplitter |
|
Split_string_into_string_list_by_regular_expression |
localworker |
ScriptList split = new ArrayList();
if (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
for (int i = 0; i < result.length; i++) {
split.add(result[i]);
}
}
|
regex_value |
stringconstant |
Value, |
Merge_String_List_to_a_String |
localworker |
ScriptString seperatorString = "\n";
if (seperator != void) {
seperatorString = seperator;
}
StringBuffer sb = new StringBuffer();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
sb.append(item);
if (i.hasNext()) {
sb.append(seperatorString);
}
}
concatenated = sb.toString();
try {
Integer.parseInt(concatenated);
}
catch (NumberFormatException e) {
concatenated = "1";
}
|
seperator_value |
stringconstant |
Value |
Rshell |
rshell |
Scriptpng(filename=popplot, main=title, xlab="year", ylab="population", height=400,width=400,bg="white");
hist(log10(Filter(function(x) x> 10, populations)));
dev.off();
R Serverlocalhost:6311 |
Ask |
localworker |
Scriptimport javax.swing.JOptionPane;
answer = JOptionPane.showInputDialog(null, (message == void ? null : message), (title == void ? null : title), JOptionPane.QUESTION_MESSAGE);
|
message_value |
stringconstant |
ValuePlease enter a title for the population chart |
title_value |
stringconstant |
ValueUSER TITLE INPUT |
Datalinks (14)
Source |
Sink |
getCountries:parameters |
getCountries_output:input |
getPopulation_input:output |
getPopulation:parameters |
getCountries_output:getCountriesResult |
getPopulation_input:strCountry |
getPopulation:parameters |
getPopulation_output:input |
getPopulation_output:getPopulationResult |
getPopulation_getPopulationResult:input |
regex_value:value |
Split_string_into_string_list_by_regular_expression:regex |
getPopulation_getPopulationResult:Pop |
Split_string_into_string_list_by_regular_expression:string |
seperator_value:value |
Merge_String_List_to_a_String:seperator |
Split_string_into_string_list_by_regular_expression:split |
Merge_String_List_to_a_String:stringlist |
Merge_String_List_to_a_String:concatenated |
Rshell:populations |
Ask:answer |
Rshell:title |
message_value:value |
Ask:message |
title_value:value |
Ask:title |
Rshell:popplot |
plot |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(4)
Only the first 2 workflows that use similar services are shown. View all workflows that use these services.
Population histogram in R
(1)
This workflow fetches the details of the countries in the world and then uses R to produce a histogram of the log of their population
Created: 2011-09-21
| Last updated: 2011-09-21
Credits:
Wdsnellg
Population histogram in R (with Ask Box!)
(1)
This workflow fetches the details of the countries in the world and then uses R to produce a histogram of the log of their population. Prompts the user to enter a title for the histogram.
Created: 2011-09-21
| Last updated: 2011-09-21
Credits:
tpacurtis
Alan Williams
Attributions:
Comments (0)
No comments yet
Log in to make a comment