Improbable Meat is a company that seeks to create beef alternatives from belly button bacteria. For this analysis, a completed panel of demographic information needs to be created, as well as visualizations for the bacterial data for each volunteer. Specifically, volunteers should be able to identify the top 10 bacterial species in their belly buttons. That way, if Improbable Beef identifies a species as a candidate to manufacture synthetic beef, the volunteers will be able to identify whether that species is found in their navel.
To be created:
- Create a Horizontal Bar Chart
- Create a Bubble Chart
- Create a Gauge Chart
- Customize the Dashboard
Deployment: https://jennyjohnson78.github.io/
- Create horizontal bar chart:
// Create horizonal bar chart
var yticks = otu_ids.slice(0,10);
//console.log(otu_ids);
// Create the trace for the bar chart.
var barData = [{
x: sample_values.slice(0,10).reverse(),
y: otu_ids_tagged.slice(0,10).reverse(),
orientation: 'h',
type: 'bar',
text: otu_labels.slice(0,10).reverse()
}];
// Create the layout for the bar chart.
var barLayout = {
title: "",
yticks: yticks,
width: 1000
};
// Use Plotly to plot the data with the layout.
Plotly.newPlot("bar", barData, barLayout);
// Create the layout for the bubble chart.
var bubbleLayout = {
title: "Bacteria Cultures Per Sample",
xaxis:{title: "OTU ID"},
hovermode: "closest",
margin: {pad: 5}
};
// Use Plotly to plot the data with the layout.
Plotly.newPlot("bubble", bubbleData, bubbleLayout);
// Create the layout for the gauge chart.
var gaugeLayout = {
margin: {pad: 5}
};
// Use Plotly to plot the gauge data and layout.
Plotly.newPlot("gauge", gaugeData, gaugeLayout);
});
- HTML and Bootstrap allow for jumbotron customization and the ability to filter by participant
Plant and non-meat sources of "meat" are the future of the American menu. With more and more people looking to remove animal meat from their diets, the demand for synthetic meat will only continue to grow. The creation of meat substitutes via belly button bacteria may be a solution to this growing demand. Part of the appeal of donating ones bacteria is the ability to see how their contribution is furthering this technology. By creating a webpage where volunteers can track their bacteria, data analytics illuminates the endless possibilities of people to interact with their own data.