Welcome to ClientVPS Mirrors

Using centered_barplot() to Visualize Nominal Distributions

Using centered_barplot() to Visualize Nominal Distributions

library(nomiShape)

Centered Bar Plot Example

The below example demonstrates how to use the centered_barplot() function from the nomiShape package to create a centered bar plot for a nominal variable “manufacturer” in the mpg dataset. Centered bar plots help visualize the distribution of categories by placing the most frequent categories at the center.

centered_barplot(mpg, "manufacturer")

Another example using the starwars dataset to visualize the distribution of the “species” variable, scaled to percentages.

centered_barplot(starwars, "species", scale = "percent")

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.