Icon

Exercise3

<p><strong>Chapter 3/Exercise 3</strong></p><p>This is a data visualization exercise creating the following plots:</p><ol><li><p>A workclass histogram <strong>without </strong>coloring using the <em>Bar Chart</em> node</p></li><li><p>A scatter plot <strong>with coloring</strong> - "age" vs. "hours-per-week" (Female: red; Male: blue)</p></li><li><p>A histogram <strong>with coloring</strong> using the <em>Bar Chart</em> node with 10 age bins (Female: red; Male: blue)</p></li></ol>

URL: KNIME Beginner's Luck (Book Homepage) https://www.knime.com/knimepress/beginners-luck

Workflow: Chapter 3/Exercise 3


This is a data visualization exercise creating the following plots:

  1. A workclass histogram without coloring using the Bar Chart node

  2. A scatter plot with coloring - "age" vs. "hours-per-week" (Female: red; Male: blue)

  3. A histogram with coloring using the Bar Chart node with 10 age bins (Female: red; Male: blue)

Workclass Bar Chart, no color

Age Histogram with Colors

Reading data

Add coloring

  • male: blue

  • remale: red

Scatter Plot, with colors

Separates selected from non-selected rows in the input data

Add colors
Color Manager
Top: selected data points in viewBottom: remaining data points
HiLite Row Splitter
Change [ into (for sorting purposes
Expression
Binned age vs. sex+ count
Pivot
age vs. hours-per-week,colored by "sex"
Scatter Plot
Add colors
Color Manager
Binning "age",10 bins, equal width
Binner
Count in age binsby sex
Bar Chart
adult.csv with column headers
CSV Reader
Resorting
Sorter
Workclass histogram:bar chart with counton "workclass" categories
Bar Chart

Nodes

Extensions

Links