Replies: 2 comments
-
Yes, this! I was also spending a lot of time trying to verify if line segments can only be drawn vertically. |
Beta Was this translation helpful? Give feedback.
-
This is a great example of a feature that we probably shouldn't add. There is another way to add arbitrary lines to a plot, which is by adding a |
Beta Was this translation helpful? Give feedback.
-
The current
create.scatterplot
function has the option to add line segments using the following option:However, this function only allows adding the vertical line from the same location of
x
, but not the horizontal lines; here is the source code:I think the current version doesn't allow for the customization of
x
effectively. It would be useful to enhance the functionality by allowing the addition of multiple arguments, enabling features like drawing horizontal lines and lines from different positions, such as:One potential application for this enhancement is in drawing enriched gene locations in the GSEA plot:
Beta Was this translation helpful? Give feedback.
All reactions