# Help Making Figures/Scatterplot?

**URL:** <https://community.mrtrix.org/t/help-making-figures-scatterplot/7877>\
**Category:** Uncategorized\
**Created:** [August 21, 2024, 3:34pm UTC](https://community.mrtrix.org/t/help-making-figures-scatterplot/7877 "2024-08-21T15:34:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adsouza](https://community.mrtrix.org/user_avatar/community.mrtrix.org/adsouza/32/4571_2.png) [@adsouza](https://community.mrtrix.org/u/adsouza)\
**Post date:** [August 22, 2024, 12:43am UTC](https://community.mrtrix.org/t/help-making-figures-scatterplot/7877/2 "2024-08-22T00:43:05Z")

</div>

Hi Ivan,

> [@Ivan\_Campbell](#):
>
> Firstly, how do I actually get a scatter plot of correlations between FDC and my variable of interest from mrtrix?

Here is a potential plan of attack

1. get a fixel mask of the region (for example, CST). This can be computed using `tck2fixel $TractSeg_region_tck $fixel_directory_in $fixel_masks_dir $Region_fixel_mask` (assuming that TractSeg was used to generate the CST bundle).
2. compute the average FDC metric for each subject in the region. This can be done using `mrstats <FDC_subject#.mif> -mask $Region_fixel_mask`. To print out only the mean, consider adding in the option `-output mean`. Loop through the subject list and print (and append) the output to a text file (along with the subject label).

See [here](https://community.mrtrix.org/t/extracting-fd-fc-and-fdc-using-tractseg/7790/2) and [here](https://community.mrtrix.org/t/calculating-average-fba-metrics-of-specific-tracts/1805/2) for more information on this topic 😃

Cheers,  
Arkiev

---

_[View the full topic](https://community.mrtrix.org/t/help-making-figures-scatterplot/7877)._
