Sir/Madam, I am a scholar at Aligarh Muslim University and have been continuously using R language. Recently, I am stuck on labeling axis of the graphic, I have made. Actually, I want to use mathematical notation 0<beta<1 at the axis. I know how to write the greek letter but I am unable to show the interval (0,1) . I would be really grateful if you could help me with this problem. Waiting for your reply With regards, Romana Shehla Research Scholar AMU [[alternative HTML version deleted]]
On Sep 2, 2015, at 8:21 AM, Romana Shehla wrote:> Sir/Madam, > > I am a scholar at Aligarh Muslim University and have been > continuously using R language. Recently, I am stuck on labeling axis of the > graphic, I have made. Actually, I want to use mathematical notation > 0<beta<1 at the axis. I know how to write the greek letter but I am unable > to show the interval (0,1) . I would be really grateful if you could help > me with this problem. > Waiting for your replyplot(1,1, xlab=expression( 0 *"<"* beta *"<"* 1 ) ) I originally tried: plot(1,1, xlab=expression( 0 < beta < 1 ) ) .... But it throws an error because the is not a syntactically correct R expression, so I switched to using text versions of the symbols. -- David Winsemius Alameda, CA, USA
Please show us the code that you used that failed. There are several different graphics systems in R, and the answer depends on which system you use. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Wed, Sep 2, 2015 at 8:21 AM, Romana Shehla <romana.stats at gmail.com> wrote:> Sir/Madam, > > I am a scholar at Aligarh Muslim University and have been > continuously using R language. Recently, I am stuck on labeling axis of the > graphic, I have made. Actually, I want to use mathematical notation > 0<beta<1 at the axis. I know how to write the greek letter but I am unable > to show the interval (0,1) . I would be really grateful if you could help > me with this problem. > Waiting for your reply > > With regards, > Romana Shehla > Research Scholar > AMU > > [[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.
1. Always reply to the list, not just to 1 person. 2. I don't do private consulting. 3. Read the posting guide linked below for how to properly post code. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Wed, Sep 2, 2015 at 11:59 PM, Romana Shehla <romana.stats at gmail.com> wrote:> Sir , I have attached the pdf file of codes. > > With regards, > Romana Shehla > Research Scholar > AMU > > On Thu, Sep 3, 2015 at 12:15 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: >> >> Please show us the code that you used that failed. There are several >> different graphics systems in R, and the answer depends on which >> system you use. >> >> Cheers, >> Bert >> Bert Gunter >> >> "Data is not information. Information is not knowledge. And knowledge >> is certainly not wisdom." >> -- Clifford Stoll >> >> >> On Wed, Sep 2, 2015 at 8:21 AM, Romana Shehla <romana.stats at gmail.com> >> wrote: >> > Sir/Madam, >> > >> > I am a scholar at Aligarh Muslim University and have been >> > continuously using R language. Recently, I am stuck on labeling axis of >> > the >> > graphic, I have made. Actually, I want to use mathematical notation >> > 0<beta<1 at the axis. I know how to write the greek letter but I am >> > unable >> > to show the interval (0,1) . I would be really grateful if you could >> > help >> > me with this problem. >> > Waiting for your reply >> > >> > With regards, >> > Romana Shehla >> > Research Scholar >> > AMU >> > >> > [[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. > >
You still failed to post to the list! Please learn how to use your mail client properly and **always** cc the list. Anyway, here is an answer (there may be other ways):> curve(dweibull(x,shape=0.8,scale=1),mgp=c(2,0.3,0),cex.lab=1.2,xlab="t",ylab="f(t)") > mtext(expression(italic(paste(alpha==1,","," ",0<phantom(),beta<1))),side=1,line=4,cex=1)Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Sep 3, 2015 at 10:16 AM, Romana Shehla <romana.stats at gmail.com> wrote:> Dear R mailing list, > I apologise for not being correct at posting my problem. I read > the posting guide and got somewhat confused. I am really scared if I am > still correct or not. If I am not, please pardon me. > Following are the commands. Could you please let me know about how the limit > 0 < ? < 1 can be introduced at x-axis instead of ? < 1, which I have > written. > > > > >>curve(dweibull(x,shape=0.8,scale=1),mgp=c(2,0.3,0),cex.lab=1.2,xlab="t",ylab="f(t)") > >>mtext(expression(italic(paste(alpha==1,","," >> ",beta<1))),side=1,line=4,cex=1) > > > > With regards, > Romana Shehla > Research Scholar > AMU > > On Thu, Sep 3, 2015 at 8:08 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: >> >> 1. Always reply to the list, not just to 1 person. >> >> 2. I don't do private consulting. >> >> 3. Read the posting guide linked below for how to properly post code. >> >> Cheers, >> >> Bert >> Bert Gunter >> >> "Data is not information. Information is not knowledge. And knowledge >> is certainly not wisdom." >> -- Clifford Stoll >> >> >> On Wed, Sep 2, 2015 at 11:59 PM, Romana Shehla <romana.stats at gmail.com> >> wrote: >> > Sir , I have attached the pdf file of codes. >> > >> > With regards, >> > Romana Shehla >> > Research Scholar >> > AMU >> > >> > On Thu, Sep 3, 2015 at 12:15 AM, Bert Gunter <bgunter.4567 at gmail.com> >> > wrote: >> >> >> >> Please show us the code that you used that failed. There are several >> >> different graphics systems in R, and the answer depends on which >> >> system you use. >> >> >> >> Cheers, >> >> Bert >> >> Bert Gunter >> >> >> >> "Data is not information. Information is not knowledge. And knowledge >> >> is certainly not wisdom." >> >> -- Clifford Stoll >> >> >> >> >> >> On Wed, Sep 2, 2015 at 8:21 AM, Romana Shehla <romana.stats at gmail.com> >> >> wrote: >> >> > Sir/Madam, >> >> > >> >> > I am a scholar at Aligarh Muslim University and have been >> >> > continuously using R language. Recently, I am stuck on labeling axis >> >> > of >> >> > the >> >> > graphic, I have made. Actually, I want to use mathematical notation >> >> > 0<beta<1 at the axis. I know how to write the greek letter but I am >> >> > unable >> >> > to show the interval (0,1) . I would be really grateful if you could >> >> > help >> >> > me with this problem. >> >> > Waiting for your reply >> >> > >> >> > With regards, >> >> > Romana Shehla >> >> > Research Scholar >> >> > AMU >> >> > >> >> > [[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. >> > >> > > >
> On 03 Sep 2015, at 19:34 , Bert Gunter <bgunter.4567 at gmail.com> wrote: > > You still failed to post to the list! Please learn how to use your > mail client properly and **always** cc the list. > > Anyway, here is an answer (there may be other ways): > >> curve(dweibull(x,shape=0.8,scale=1),mgp=c(2,0.3,0),cex.lab=1.2,xlab="t",ylab="f(t)") >> mtext(expression(italic(paste(alpha==1,","," ",0<phantom(),beta<1))),side=1,line=4,cex=1) >I think I prefer: mtext(expression({alpha==1}*","~0<{beta<1}),side=1,line=4,cex=1) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com