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

Continous data gives problems with sg_title, sg_annotate, and sg_add_marker #39

Open
Alexander-Kahanek opened this issue Jun 7, 2020 · 0 comments

Comments

@Alexander-Kahanek
Copy link

Alexander-Kahanek commented Jun 7, 2020

When using the continuous data option, it runs into the following problems:

  • The sg_title() function does not seem to work, and actually adjusts the plot size.
  • The sg_annotate() function does not work.

Also, my package cannot find the sg_add_marker() function, although it is mentioned as being functional.

Here is my code for replication:

temp <- data.frame("type"= letters[1:10], "id"= 1:10, "data"= 1:10)

streamgraph(temp, "type", "data", "id",
            interpolate="cardinal", scale = "continuous", width="800px") %>% 
  sg_legend(show=TRUE, label="Collection ID: ") %>% 
  sg_fill_brewer("RdPu") %>% 
  sg_title("test") %>% # does not work
  sg_annotate("test",2,2) # %>% sg_add_marker("test", x=7) # both do not work

EDIT:
Scratch that, the annotate works, I was just not passing in x and y correctly. However, It will draw if I pass in "[number]px" to x and y, but changing the number does not change the position in the graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant