R programming: Graphic commands

0 votes
What is the command for writing the below, as the legend at top left of a graph :

(\mu_1,\mu_2)=(8,7) where 8 and 7 come from the value of the variables mu1 and mu2, assigned in the program.
Feb 19, 2019 in Data Analytics by Sophie may
• 9,900 points
30 views

1 answer to this question.

0 votes

For this purpose, make use of the bquote to write the expression:

mu1 <- 7
mu2 <- 8
plot(1,1)
legend("topleft", legend=bquote((mu[1]*","*mu[2])==(.(mu1)*","*.(mu2))))
answered Feb 19, 2019 by Tyrion anex
• 8,320 points

Related Questions In Data Analytics

0 votes
1 answer

Commands used to store R objects in a file

Use the command  save (x, file=”x.Rdata”) READ MORE

answered Aug 3, 2018 in Data Analytics by Sahiti
• 6,290 points
87 views
0 votes
2 answers

What are the rules to define a variable name in R programming language?

The same rules almost follow for all ...READ MORE

answered Aug 26, 2019 in Data Analytics by anonymous
• 32,420 points
138 views
0 votes
1 answer

Why should I adopt R programming

R Programming is the best mechanism for ...READ MORE

answered Oct 29, 2018 in Data Analytics by Maverick
• 10,780 points
35 views
0 votes
2 answers

Error: could not find function - R Programming

Yes, Just like @Maverik said, It happens ...READ MORE

answered Aug 22, 2019 in Data Analytics by anonymous
• 32,420 points
6,924 views
+9 votes
3 answers

Which is a better initiative to learn data science: Python or R?

Well it truly depends on your requirement, If ...READ MORE

answered Aug 8, 2018 in Data Analytics by Anmol
• 3,680 points
94 views
+1 vote
2 answers
0 votes
1 answer

R programming logic

Use gsub to match the substring that we want ...READ MORE

answered Nov 16, 2018 in Data Analytics by Maverick
• 10,780 points
46 views
0 votes
1 answer
0 votes
1 answer

R programming error

Alright, you can either use gsub to match the ...READ MORE

answered Dec 18, 2018 in Data Analytics by Tyrion anex
• 8,320 points
40 views
0 votes
1 answer

Check if a matrix is diagonalizable in R Programming Language

On a given matrix, a, the first way ...READ MORE

answered Dec 24, 2018 in Data Analytics by Tyrion anex
• 8,320 points
62 views