Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geom_mark_ellipse data co-ordinates #309

Open
nfancy opened this issue Oct 18, 2023 · 2 comments
Open

geom_mark_ellipse data co-ordinates #309

nfancy opened this issue Oct 18, 2023 · 2 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@nfancy
Copy link

nfancy commented Oct 18, 2023

Hi,

Thanks for this amazing package and specially this geom_mark_ellipse function. However, I am struggling to add multiple labelling due to the parameters clashing. For example, I want to label the ellipse with some text but also wants to label the individual points using geom_text. Since both geom_text and geom_mark_ellipse use label parameter, I get an error.

Any pointer how can I do this?

Thanks in advance.

Nurun

@nfancy
Copy link
Author

nfancy commented Oct 18, 2023

Hi, I've kind of managed to do what I wanted using the description parameter. See below:

image

Just needs a bit of tidy up. A few queries:
-How can I increase the width of the annotation box, increasing the label.width does not work.
-How can I hide the label connector lines where I don't want the labelling but I still want the hulls, so the filter in your example does not suit.

Thanks again.

Nurun

@thomasp85
Copy link
Owner

Can you provide a reprex (a minimal example code that I can run) which shows how the label.width is not working as expected?

For the connector I have now made it so that if both label and description is set to NA (or not set at all) the label and connector will not be drawn

@thomasp85 thomasp85 added the bug an unexpected problem or unintended behavior label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants