Hi all, I have a question which seems trivial but simply cannot figure out its solution. I want to type A_{\alpha,\beta} in the title of a plot. Uwe once pointed out a solution expression(A[alpha*beta]) But the output of the above command does not include the "," in the subscript. Is there a way to solve my question? Thanks so much! Regards, Jeff [[alternative HTML version deleted]]
Hello! Here is a solution:> plot(1:10) > xa <- expression(A[list(alpha,beta)]) > title(xa)On Sun, Jan 1, 2017 at 1:22 PM, Jeff Shane <honolulushane at gmail.com> wrote:> Hi all, > > I have a question which seems trivial but simply cannot figure out its > solution. > > I want to type A_{\alpha,\beta} in the title of a plot. Uwe once pointed > out a solution > > expression(A[alpha*beta]) > > But the output of the above command does not include the "," in the > subscript. Is there a way to solve my question? Thanks so much! > > Regards, > Jeff > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
Does the following do well enough? plot(1,1);title(expression(A[paste(alpha,",",beta)])) Bill Dunlap TIBCO Software wdunlap tibco.com On Sun, Jan 1, 2017 at 11:22 AM, Jeff Shane <honolulushane at gmail.com> wrote:> Hi all, > > I have a question which seems trivial but simply cannot figure out its > solution. > > I want to type A_{\alpha,\beta} in the title of a plot. Uwe once pointed > out a solution > > expression(A[alpha*beta]) > > But the output of the above command does not include the "," in the > subscript. Is there a way to solve my question? Thanks so much! > > Regards, > Jeff > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
... or perhaps simpler and more transparently: plot(0:1 ~0:1, main = expression(A[alpha*","*beta])) Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sun, Jan 1, 2017 at 7:37 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:> Hello! > > Here is a solution: > >> plot(1:10) >> xa <- expression(A[list(alpha,beta)]) >> title(xa) > > > > On Sun, Jan 1, 2017 at 1:22 PM, Jeff Shane <honolulushane at gmail.com> wrote: > >> Hi all, >> >> I have a question which seems trivial but simply cannot figure out its >> solution. >> >> I want to type A_{\alpha,\beta} in the title of a plot. Uwe once pointed >> out a solution >> >> expression(A[alpha*beta]) >> >> But the output of the above command does not include the "," in the >> subscript. Is there a way to solve my question? Thanks so much! >> >> Regards, >> Jeff >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/ >> posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics > University of Houston - Downtown > mailto: erinm.hodgess at gmail.com > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Thanks, Erin! This works well. On 2017/1/1 22:37, Erin Hodgess wrote:> Hello! > > Here is a solution: > > > plot(1:10) > > xa <- expression(A[list(alpha,beta)]) > > title(xa) > > > > On Sun, Jan 1, 2017 at 1:22 PM, Jeff Shane <honolulushane at gmail.com > <mailto:honolulushane at gmail.com>> wrote: > > Hi all, > > I have a question which seems trivial but simply cannot figure out its > solution. > > I want to type A_{\alpha,\beta} in the title of a plot. Uwe once > pointed > out a solution > > expression(A[alpha*beta]) > > But the output of the above command does not include the "," in the > subscript. Is there a way to solve my question? Thanks so much! > > Regards, > Jeff > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org <mailto:R-help at r-project.org> mailing list -- > To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > <https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > > > > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics > University of Houston - Downtown > mailto: erinm.hodgess at gmail.com <mailto:erinm.hodgess at gmail.com>[[alternative HTML version deleted]]
Thanks, Bill! Yes, your code works well. On 2017/1/1 23:17, William Dunlap wrote:> Does the following do well enough? > plot(1,1);title(expression(A[paste(alpha,",",beta)])) > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com <http://tibco.com> > > On Sun, Jan 1, 2017 at 11:22 AM, Jeff Shane <honolulushane at gmail.com > <mailto:honolulushane at gmail.com>> wrote: > > Hi all, > > I have a question which seems trivial but simply cannot figure out its > solution. > > I want to type A_{\alpha,\beta} in the title of a plot. Uwe once > pointed > out a solution > > expression(A[alpha*beta]) > > But the output of the above command does not include the "," in the > subscript. Is there a way to solve my question? Thanks so much! > > Regards, > Jeff > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org <mailto:R-help at r-project.org> mailing list -- > To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > <https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > >[[alternative HTML version deleted]]