Skip to content

comparePlots 1.1.0

Choose a tag to compare

@heelgueta heelgueta released this 26 Nov 14:14
· 4 commits to master since this release

New analyses (a second section of the menu: Compare Groups)

  • The menu now has two sections: Compare Variables (Numeric, Ordinal, Nominal) and Compare Groups.
  • Compare Dichotomous and Compare Polytomous compare numeric variables across the levels of a grouping variable (two groups, or three or more), with box, violin, means with error bars, raincloud, ridgeline, histogram, overlaid densities, ECDF, data points and barcode plots. Groups can be shown side by side within each variable, or in panels by group or by variable. Compare Dichotomous requires exactly two groups (and says so otherwise) and adds plots made for two groups:
    • split violin;
    • back-to-back histogram (population pyramid, e.g. age by sex; counts or percent of group; classic upright layout with vertical orientation, mirrored above/below a horizontal axis with horizontal orientation);
    • percentile ladder: the two groups' values at each percentile (quartiles, deciles or every 5th) joined by a bar coloured by the higher group, so you see where in the distribution they differ and by how much;
    • lead plot: at each value, the share of group 1 at or below it minus the share of group 2 (the running difference of the two cumulative distributions), with the largest gap marked and a two-row barcode of the observations underneath;
    • Shade the overlap in Overlaid Densities, with the overlap of the two curves as a percentage.
      Compare Polytomous accepts any number of groups (and points to Compare Dichotomous when there are two).
  • Both have the same layout as Compare Numeric: no separate Data box, everything shared in one Appearance box, then one collapsible box per plot.
  • Reference line (Colours and Lines): dashed line at the overall mean or median of all groups together.
  • Show n in group labels: legend, panel and axis labels read e.g. "Control (n = 96)".
  • Angle of x axis labels (Text and Labels): horizontal (default), 45 or 90 degrees. Bottom legends wrap to fit long group names.
  • Plots are sized from the number of variables, groups and the display mode, long variable and group names wrap in panel headers, and the analyses warn about variables or variable-by-group combinations with no data, about variables with fewer than two distinct values in a group, and about grouping variables with more than 8 levels.

Layout (Compare Numeric, Ordinal, Nominal)

  • The three analyses have the 1.0.0 arrangement again, and the two group analyses follow it: one Appearance box whose first section, Variables, holds the data options (Transform values in Compare Numeric, Ignore missing cases in Ordinal and Nominal, both in the group analyses). This undoes the 1.0.1 changes (a separate Data box in Compare Numeric; Ignore missing cases first in a section called Data, Order and Labels in Ordinal and Nominal). 1.0.1 was never submitted to jamovi, so 1.1.0 also carries its audit fixes.

Languages

  • Spanish translation of the interface (jamovi/i18n/es.po): menus, options, results titles, palette names and example-data descriptions, and a few plot texts and notices. The sentence-style notices and plot captions are still English.

Plots

  • Explanatory note below the plot (Text and Labels, all five analyses), off by default: the notes under some plots (what the error bars show, what one waffle or pictogram cell is worth, and in the group analyses the reference line, the lead plot and the density overlap) are shown only when ticked. In 1.0.x the error-bar and waffle/pictogram notes were always shown. Show n is unchanged.
  • The heatmap's colour bar is drawn as vector rectangles (sharp in PDF and SVG exports) and has about four labelled breaks, so its labels no longer overprint.

Example data

  • New example_groups dataset (a three-arm therapy trial, n = 270) for trying Compare Dichotomous and Compare Polytomous: four grouping variables of different kinds: Group (Control / CBT / Medication, uneven sizes), Sex (dichotomous), SES (ordinal: Low, Middle, High, order respected) and Site (nominal, four levels with long names), and and six numeric measures with different shapes, including strictly positive reaction times (try the log transform) and a change score with negative values. It has a few missing values. The other three example datasets are unchanged.