# Plotting interaction from a fixed effects panel model

**URL:** <https://discourse.julialang.org/t/plotting-interaction-from-a-fixed-effects-panel-model/105792>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [November 4, 2023, 11:44am UTC](https://discourse.julialang.org/t/plotting-interaction-from-a-fixed-effects-panel-model/105792 "2023-11-04T11:44:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgmtprofessor](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@mgmtprofessor](https://discourse.julialang.org/u/mgmtprofessor)\
**Post date:** [November 4, 2023, 11:44am UTC](https://discourse.julialang.org/t/plotting-interaction-from-a-fixed-effects-panel-model/105792/1 "2023-11-04T11:44:12Z")

</div>

I just started using Julia yesterday (coming from Stata) and I am looking for a way of plotting interactions and creating graphs like the one I link below my code. I’m still newish to Python. Any resources would also be appreciated.

```plaintext
formula = @formula(Y ~ X*X + fe(firmid) + fe(year))
result = reg(df, formula, Vcov.cluster(:firmid))

```

 ![interaction_plot](https://global.discourse-cdn.com/julialang/original/3X/9/1/919f418f30f208873ed12f8f5c0e7e8d63618816.png)

---

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [November 4, 2023, 11:53am UTC](https://discourse.julialang.org/t/plotting-interaction-from-a-fixed-effects-panel-model/105792/2 "2023-11-04T11:53:45Z")

</div>

Can you say a bit more about what you’re looking for / what you’ve tried? Eg are you looking to get plottable values from the model, are you trying to understand how to plot lines, or is it a question of the style of the plot (eg dotted vs solid lines)?

Usually, a minimal example (you could include dummy data for `df`, or something from RDatasets maybe) with code that someone can run / modify is very helpful. See [See here for more tips](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).
