# PheWAS figure cutoff - need to use GraphQL?

**URL:** <https://community.opentargets.org/t/phewas-figure-cutoff-need-to-use-graphql/1112>\
**Category:** Technical Support\
**Created:** [15 June 2023 13:47 UTC](https://community.opentargets.org/t/phewas-figure-cutoff-need-to-use-graphql/1112 "2023-06-15T13:47:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dsuveges](https://dub1.discourse-cdn.com/flex017/user_avatar/community.opentargets.org/dsuveges/32/30_2.png) [@dsuveges](https://community.opentargets.org/u/dsuveges)\
**Post date:** [18 June 2023 21:43 UTC](https://community.opentargets.org/t/phewas-figure-cutoff-need-to-use-graphql/1112/4 "2023-06-18T21:43:21Z")

</div>

Hi,

If you have decided to extract data from GraphQL we have examples on how this could be done via R [here](https://community.opentargets.org/t/sample-r-script-to-query-graphql-api/510/2). The data is however quite nested. You would need to organize it in a way that is suitable for ggplot, which I highly recommend for this task. (however, I have to admit, I’m no way expert in that library).

If you solved that, I would highly recommend sharing the code here on the community, other’s might be also interested.

Best,  
Daniel

---

_[View the full topic](https://community.opentargets.org/t/phewas-figure-cutoff-need-to-use-graphql/1112)._
