Hub
Pricing About
ComponentComponent

Mosaic plot between two categorical columns

ashokharnal profile image
Draft Latest edits on 
Feb 18, 2022 5:28 AM
Drag & drop
Like
Use or download
Discover relationship between two categorical features ============================================ Draws mosaic plot between two categorical variables. Input variable values (labels) are abbreviated to four letters in the graph. Data types of the two columns must be of string type. Output plot indicates both the p-value of chi-sqaure test and Pearson Residuals. Null hypothesis is that there is no relationship between the features and both are independent. Value of p less than 0.05, as a rule of thumb, indicates relationship . Pearson residuals = (obs - exp) / sqrt(exp) Pearson residuals are calculated for each cell. As a rule of thumb, a cell with pearson residual of 3 or greater contributes more to relationship. Intensity of colour in each cell also indicates the extent observed values deviate from expected values. Note that mosaic() splits the data in the order in which the variables are provided: first on Ist categorical feature then on IInd categorical feature. For more about mosaic plots please see Wikipedia: https://en.wikipedia.org/wiki/Mosaic_plot . For more about pearson's residuals please see: https://www.statology.org/pearson-residuals/ . For a more thorough overview, please see: https://www.datavis.ca/courses/VCD/vcd-tutorial.pdf. The component needs R's vcd, package.

Component details

Input ports
  1. Type: Table
    Port 1
    Input data may be KNIME Data frame
Output ports
  1. Type: Image
    Mosiac plot output
    Mosaic plot between two variables. p-value less than 0.05 may indicate relationship between two categories

Used extensions & nodes

Created with KNIME Analytics Platform version 4.5.1
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.1

    knime
  • Go to item
    KNIME Interactive R Statistics IntegrationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.5.0

    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits