# Plot a column of 1D arrays from DataFrame using Gadfly

**URL:** <https://discourse.julialang.org/t/plot-a-column-of-1d-arrays-from-dataframe-using-gadfly/66688>\
**Category:** General Usage\
**Tags:** gadfly\
**Created:** [August 19, 2021, 6:49pm UTC](https://discourse.julialang.org/t/plot-a-column-of-1d-arrays-from-dataframe-using-gadfly/66688 "2021-08-19T18:49:29Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![thompsonmj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thompsonmj/32/25172_2.png) [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Post date:** [August 23, 2021, 4:11pm UTC](https://discourse.julialang.org/t/plot-a-column-of-1d-arrays-from-dataframe-using-gadfly/66688/8 "2021-08-23T16:11:00Z")

</div>

When I was browsing the docs, I came across the `title` method using `vstack` and `hstack` first before seeing the title guide. The method works well with the array comprehension over the flattened columns. `subplot_grid` looks good, too, but I’m not sure how to use it succinctly with my `df` that needs to be flattened over the `cols` to plot properly. Do you have a suggestion on how to use `subplot_grid` with this, so I can use just the bottom x-axis? Seems to me that I’d need to add all the flattened data from each of my y-columns to the same column, and label each row by its previous column name for `ygroup`.

I’m also interested in applying transparency to the lines. I see in an [older post](https://discourse.julialang.org/t/gadfly-how-to-change-width-and-opacity-of-lines-in-geom-density/37823), there was no alpha aesthetic for `Geom.line`. This is still the case? Is there a convenient way you’d recommend adding that with the named color scheme?

---

_[View the full topic](https://discourse.julialang.org/t/plot-a-column-of-1d-arrays-from-dataframe-using-gadfly/66688)._
