-
Notifications
You must be signed in to change notification settings - Fork 87
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
Using plotmath in variable names #20
Comments
Could you elaborate more on this ? |
In the meantime, I found this stackoverflow question: http://stackoverflow.com/questions/35965433/r-corrplot-change-data-labels/36190501 |
Ideally, I would be able to use plotmath expressions (e.g., use of subscripts or superscripts) as a variable name, similar to using an expression in the axis labels in base graphics. For example:
Based on your answer in the stackoverflow question, colnames/rownames are used in the plotting. Something like:
won't work. |
Now I understand. The problem is that Approach 1: colnames always parsed as expressions
M <- cor(mtcars)[1:5,1:5]
colnames(M) <- c("alpha", "beta", "alpha+beta", "a[0]", "a[beta]")
corrplot(M) Approach 2: new parameters
|
Thanks. |
OK, if I use Approach 3, what would be the best prefix:
|
just |
Other options would be:
|
I think anyone in |
fixed issue #20 using plotmath in variable names
Good solution! Thanks |
How do I now create a column or row name that contains just a $? I currently get the following error (in version 0.84):
|
awesome! thanks
…On Thu, Oct 5, 2017 at 9:49 PM, Viliam Simko ***@***.***> wrote:
Closed #20 <#20>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGpo9hdGUV82mccuK3AD4ERY-Ho57b5Lks5spTKygaJpZM4HJzyk>
.
|
Hey guys! I need to write MIP-1B as a column label, where B is a beta. I can't seem to be able to merge the MIP-1 with the :beta in order to get this to look right. Do you have any ideas on how to do that? |
It worked! Thanks |
Hi, I believe your solution doesn't work whenever you want to have more than one subscript associated with a variable. Is that true and is there a way to fix this? Thanks e.g. M <- cor(mtcars)[1:5,1:5] Also the following doesn't work: |
Is there a way of changing the variables names such that plotmath expressions could be used? I've tried adding a
labels
argument with a vector of new labels thinking that it may be passed through totext
, but that didn't seem to work.The text was updated successfully, but these errors were encountered: