Movatterモバイル変換


[0]ホーム

URL:


Additional Plots and Stats withggquickeda

Samer Mouksassi

2025-09-15

In this vignette we will expand what we have learned in theIntroduction to ggquickeda vignette.

Multiple Y variables, recoding continuous variables to categoriesand Medina/PI:

This first section will illustrate how to use more than one yvariable and how to generate a Median and a Ribbon showing a 95%Prediction interval (default) over the x variable (Time).

Using the built-in demo dataset:

cut a continuous variable to categorical
cut a continuous variable to categorical
MedianPI
MedianPI

We can see that Dose does not change over time and that the highestAge category is only present in the second and third weight categories(older subjects have higher weights).

Boxplots, Median/PI, Mean:

MedianPI
MedianPI
MedianPI
MedianPI
Boxplots
Boxplots
MEANDIAMOND
MEANDIAMOND

Continuous and categorical variables descriptive stats:

In the following part we will generate a descriptive stats table thatreflect the plot that we just did and then add Race.

DescStats
DescStats

Univariate Plots:

Remove all y variable(s) and any column splits keeping Age as xvariable gives a barplot since Age has been categorized.

barplots
barplots

Remove Age from Recode into Quantile Categories so it goes back to anumeric variable and the generated distribution will be a density plotinstead of a barplot. Reapply the ID inOne Row byID(s) as the data manipulation steps are sequential andchanging something in the first tab will reset the steps in thesubsequent ones.

distribution
distribution

Play with the options in theHistograms/Density/Barto see how they affect the generated plots.


[8]ページ先頭

©2009-2025 Movatter.jp