# Data Visualization

**URL:** <https://discourse.julialang.org/t/data-visualization/93160>\
**Category:** Jupyter-Notebook\
**Tags:** question\
**Created:** [January 18, 2023, 2:32pm UTC](https://discourse.julialang.org/t/data-visualization/93160 "2023-01-18T14:32:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BadBoy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/badboy/32/202815_2.png) [@BadBoy](https://discourse.julialang.org/u/BadBoy)\
**Post date:** [January 18, 2023, 2:32pm UTC](https://discourse.julialang.org/t/data-visualization/93160/1 "2023-01-18T14:32:23Z")

</div>

Suppose one data frame has two categorical variables, one is gender(male and female) and other one is smoking status(smokes, never smoked, formerly smokes, unknown) . Now how do we get a grouped bar plot of the smoking status with respect to gender in Julia.  
Like in python if we write using seaborn, sns.countplot(hue = “gender”, x = “smoking status”, data = df) where df is my data frame.

---

<div class="post-metadata">

**Author:** ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Post date:** [January 18, 2023, 3:04pm UTC](https://discourse.julialang.org/t/data-visualization/93160/2 "2023-01-18T15:04:45Z")

</div>

Maybe in long run is better if you take a look at [Tutorial 🐧 · Algebra of Graphics](https://aog.makie.org/stable/generated/penguins/)

if it looks like to much to achieve your goal, please share some toy example data and attempt so that we can help you.
