Replies: 1 comment
-
add expand = FALSE to the coord_flip() or to coord_cartesian() if not flipped library(microViz)
#> microViz version 0.12.3 - Copyright (C) 2021-2024 David Barnett
#> ! Website: https://david-barnett.github.io/microViz
#> ✔ Useful? For citation details, run: `citation("microViz")`
#> ✖ Silence? `suppressPackageStartupMessages(library(microViz))` library(ggplot2)
data(dietswap, package = "microbiome")
dietswap %>%
ps_filter(timepoint == 1) %>%
comp_barplot(tax_level = "Family", n_taxa = 8) +
coord_flip(expand = FALSE) Created on 2024-06-13 with reprex v2.1.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have been trying to reduce the space between axes and plot and I just can't figure it out.
It seems that there is some space created by comp_barplot like shown in example "p1" on the function wiki page.
![image](https://private-user-images.githubusercontent.com/13840904/339054210-ef60a2a9-e787-46b8-a485-7995b3a694f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODYxNjcsIm5iZiI6MTczODg4NTg2NywicGF0aCI6Ii8xMzg0MDkwNC8zMzkwNTQyMTAtZWY2MGEyYTktZTc4Ny00NmI4LWE0ODUtNzk5NWIzYTY5NGYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDIzNTEwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlNjlkOGUxYWFjNjA3ZmY5NjdmYThmZWU2YmZiNTU5ZWNjNDFlY2Q5NmI1ZWRiMzliN2JhODgxN2MzZDE4MDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.e1xBI5ShiBq79x9sKDWCf2DaH4fOavSCMMuzNqlXIZE)
Is there a way to reduce such spacing between bars and axes?
Thanks,
Guillaume
Beta Was this translation helpful? Give feedback.
All reactions