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

chart.ME : add legend.loc as a new parameter #77

Merged
merged 6 commits into from
Mar 22, 2019

Conversation

anshul96go
Copy link
Contributor

Solved issue #66

@braverock
Copy link
Owner

I'm happy to consider a patch in this direction, but we should be consistent in the naming conventions and functionality for plot and plot.xts

So the parameter should be legend.loc as in plot.xts

From the plot.xts documentation:

legend.loc: places a legend into one of nine locations on the chart:
            bottomright, bottom, bottomleft, left, topleft, top,
            topright, right, or center. Default NULL does not draw a
            legend.

@anshul96go
Copy link
Contributor Author

@braverock
Should the working of parameter also remain the same? I was thinking of giving it bottomright value rather than NULL

@braverock
Copy link
Owner

I think a default of bottomright is fine. The documentation would need to reflect this default and the NULL option (no legend)

@braverock braverock changed the title Add Legend_Position as a new parameter chart.ME : add legend.loc as a new parameter Mar 15, 2019
@anshul96go
Copy link
Contributor Author

@braverock
Please verify the last commit

@braverock braverock mentioned this pull request Mar 16, 2019
@anshul96go
Copy link
Contributor Author

@braverock
Should I start working on the application for GSOC and which channel should I use for communication?

@braverock braverock mentioned this pull request Mar 17, 2019
@jaymon0703 jaymon0703 merged commit 20f55fe into braverock:master Mar 22, 2019
@jaymon0703
Copy link
Collaborator

jaymon0703 commented Mar 22, 2019

Thanks @anshul96go this PR is merged

@braverock
Copy link
Owner

@jaymon0703 has merged this pull request. Thanks @anshul96go and @vi-to for the input.

This closes #77 and #66

@vi-to
Copy link
Contributor

vi-to commented Mar 22, 2019

Hi, thank you very much for the feedback! About the pull request just merged, I would like to point out that it does not allow to plot chart.ME without a legend, that is to set legend.loc = NULL. It may be useful to do so because there may be trade points hidden by the legend. This option was allowed in pull request #78. Clearly, it is okay if you consider it to be a minor point and do not want it, the present remarks are just for the sake of development.

@braverock
Copy link
Owner

braverock commented Mar 22, 2019

@vi-to thanks for your comment.

I encourage you to open a minimal (no whitespace, no extraneous stuff) pull request with a clear and useful commit message, and we would be happy to test and merge it.

It usually isn't a good idea to have dueling commits, and one of the challenges of your pull request was that it would have been better structured as a branch off the #77 pull request, so that everything would stay organized and traceable.

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

Successfully merging this pull request may close these issues.

4 participants