[R] barplot question
i'm doing a bar plot and there are 16 column variables. is there a way to make the variable names go down instead of across when you do the barplot ? because the names are so long, the barplot just shows 3 names and leaves the rest out. if i could rotate the names 90 degrees, it would probably fit a lot more. or maybe i can use space to make the horizontal width longer ? I looed up ?barlot but i'm not sure. when 1st and 2nd are on the bottom, things look fine but i'm not as interesed in those 2 barplots. i didn't use any special options. i just did barplot(probsignmatrix) barplot(t(probsignmatrix)) barplot(probsignmatrix,beside=T) barplot(t(probsignmatrix),beside=T) i put probsignmatrix below in case someone wants to see what i mean because it may not be clear. i don't expect anyone to type it in but rounding would still show what i mean. thanks a lot. pcount pmpppcount pmmppcount pmmmpcount pcount mcount pppmmcount ppmmmcount ppmppcount ppmmpcount pppmpcount ppmpmcount pmpmpcount pmpmmcount pmmpmcount pmppmcount 1st 0.03477157 0.02842640 0.03157360 0.03365482 0.04010152 0.03553299 0.03989848 0.04182741 0.02817259 0.03203046 0.02781726 0.02218274 0.01771574 0.02289340 0.02583756 0.02390863 2nd 0.04648895 0.02901495 0.03092490 0.03064044 0.04108420 0.03998700 0.03958062 0.04059655 0.03039662 0.03027471 0.02901495 0.02170026 0.01601105 0.02287874 0.02165962 0.02267555 This is not an offer (or solicitation of an offer) to buy/sell the securities/instruments mentioned or an official confirmation. Morgan Stanley may deal as principal in or own or act as market maker for securities/instruments mentioned or may advise the issuers. This is not research and is not from MS Research but it may refer to a research analyst/research report. Unless indicated, these views are the author's and may differ from those of Morgan Stanley research or others in the Firm. We do not represent this is accurate or complete and we may not update this. Past performance is not indicative of future returns. For additional information, research reports and important disclosures, contact me or see https://secure.ms.com/servlet/cls. You should not use e-mail to request, authorize or effect the purchase or sale of any security or instrument, to send transfer instructions, or to effect any other transactions. We cannot guarantee that any such requests received via ! e-mail will be processed in a timely manner. This communication is solely for the addressee(s) and may contain confidential information. We do not waive confidentiality by mistransmission. Contact me if you do not wish to receive these communications. In the UK, this communication is directed in the UK to those persons who are market counterparties or intermediate customers (as defined in the UK Financial Services Authority's rules). [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list 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.
Re: [R] barplot question
Try RSiteSearch(rotate barplot labels) Then read the first thread for an example of what you want to do. Cheers Francisco Dr. Francisco J. Zagmutt College of Veterinary Medicine and Biomedical Sciences Colorado State University From: Leeds, Mark (IED) [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch Subject: [R] barplot question Date: Tue, 17 Oct 2006 17:15:43 -0400 i'm doing a bar plot and there are 16 column variables. is there a way to make the variable names go down instead of across when you do the barplot ? because the names are so long, the barplot just shows 3 names and leaves the rest out. if i could rotate the names 90 degrees, it would probably fit a lot more. or maybe i can use space to make the horizontal width longer ? I looed up ?barlot but i'm not sure. when 1st and 2nd are on the bottom, things look fine but i'm not as interesed in those 2 barplots. i didn't use any special options. i just did barplot(probsignmatrix) barplot(t(probsignmatrix)) barplot(probsignmatrix,beside=T) barplot(t(probsignmatrix),beside=T) i put probsignmatrix below in case someone wants to see what i mean because it may not be clear. i don't expect anyone to type it in but rounding would still show what i mean. thanks a lot. pcount pmpppcount pmmppcount pmmmpcount pcount mcount pppmmcount ppmmmcount ppmppcount ppmmpcount pppmpcount ppmpmcount pmpmpcount pmpmmcount pmmpmcount pmppmcount 1st 0.03477157 0.02842640 0.03157360 0.03365482 0.04010152 0.03553299 0.03989848 0.04182741 0.02817259 0.03203046 0.02781726 0.02218274 0.01771574 0.02289340 0.02583756 0.02390863 2nd 0.04648895 0.02901495 0.03092490 0.03064044 0.04108420 0.03998700 0.03958062 0.04059655 0.03039662 0.03027471 0.02901495 0.02170026 0.01601105 0.02287874 0.02165962 0.02267555 This is not an offer (or solicitation of an offer) to buy/sell the securities/instruments mentioned or an official confirmation. Morgan Stanley may deal as principal in or own or act as market maker for securities/instruments mentioned or may advise the issuers. This is not research and is not from MS Research but it may refer to a research analyst/research report. Unless indicated, these views are the author's and may differ from those of Morgan Stanley research or others in the Firm. We do not represent this is accurate or complete and we may not update this. Past performance is not indicative of future returns. For additional information, research reports and important disclosures, contact me or see https://secure.ms.com/servlet/cls. You should not use e-mail to request, authorize or effect the purchase or sale of any security or instrument, to send transfer instructions, or to effect any other transactions. We cannot guarantee that any such requests received via ! e-mail will be processed in a timely manner. This communication is solely for the addressee(s) and may contain confidential information. We do not waive confidentiality by mistransmission. Contact me if you do not wish to receive these communications. In the UK, this communication is directed in the UK to those persons who are market counterparties or intermediate customers (as defined in the UK Financial Services Authority's rules). [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list 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. __ R-help@stat.math.ethz.ch mailing list 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.
Re: [R] barplot question
Mark i'm doing a bar plot and there are 16 column variables. is there a way to make the variable names go down instead of across when you do the barplot ? because the names are so long, the barplot just shows 3 names and leaves the rest out. if i could rotate the names 90 degrees, it would probably fit a lot more. Is this the sort of thing you mean: temp - barplot(rnorm(16, 3)) text(temp, rep(-0.2, 16), paste('trt', 1:16), srt=90, adj=1) Peter Alspach or maybe i can use space to make the horizontal width longer ? I looed up ?barlot but i'm not sure. when 1st and 2nd are on the bottom, things look fine but i'm not as interesed in those 2 barplots. i didn't use any special options. i just did barplot(probsignmatrix) barplot(t(probsignmatrix)) barplot(probsignmatrix,beside=T) barplot(t(probsignmatrix),beside=T) i put probsignmatrix below in case someone wants to see what i mean because it may not be clear. i don't expect anyone to type it in but rounding would still show what i mean. thanks a lot. pcount pmpppcount pmmppcount pmmmpcount pcount mcount pppmmcount ppmmmcount ppmppcount ppmmpcount pppmpcount ppmpmcount pmpmpcount pmpmmcount pmmpmcount pmppmcount 1st 0.03477157 0.02842640 0.03157360 0.03365482 0.04010152 0.03553299 0.03989848 0.04182741 0.02817259 0.03203046 0.02781726 0.02218274 0.01771574 0.02289340 0.02583756 0.02390863 2nd 0.04648895 0.02901495 0.03092490 0.03064044 0.04108420 0.03998700 0.03958062 0.04059655 0.03039662 0.03027471 0.02901495 0.02170026 0.01601105 0.02287874 0.02165962 0.02267555 __ The contents of this e-mail are privileged and/or confidenti...{{dropped}} __ R-help@stat.math.ethz.ch mailing list 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.
Re: [R] barplot question
On 10/17/06, Leeds, Mark (IED) [EMAIL PROTECTED] wrote: i'm doing a bar plot and there are 16 column variables. is there a way to make the variable names go down instead of across when you do the barplot ? because the names are so long, the barplot just shows 3 names and leaves the rest out. if i could rotate the names 90 degrees, it would probably fit a lot more. or maybe i can use space to make the horizontal width longer ? I looed up ?barlot but i'm not sure. when 1st and 2nd are on the bottom, things look fine but i'm not as interesed in those 2 barplots. i didn't use any special options. i just did barplot(probsignmatrix) barplot(t(probsignmatrix)) barplot(probsignmatrix,beside=T) barplot(t(probsignmatrix),beside=T) i put probsignmatrix below in case someone wants to see what i mean because it may not be clear. i don't expect anyone to type it in but rounding would still show what i mean. thanks a lot. pcount pmpppcount pmmppcount pmmmpcount pcount mcount pppmmcount ppmmmcount ppmppcount ppmmpcount pppmpcount ppmpmcount pmpmpcount pmpmmcount pmmpmcount pmppmcount 1st 0.03477157 0.02842640 0.03157360 0.03365482 0.04010152 0.03553299 0.03989848 0.04182741 0.02817259 0.03203046 0.02781726 0.02218274 0.01771574 0.02289340 0.02583756 0.02390863 2nd 0.04648895 0.02901495 0.03092490 0.03064044 0.04108420 0.03998700 0.03958062 0.04059655 0.03039662 0.03027471 0.02901495 0.02170026 0.01601105 0.02287874 0.02165962 0.02267555 Don't know if you want to go this way, but try library(lattice) barchart(t(probsignmatrix)) -Deepayan __ R-help@stat.math.ethz.ch mailing list 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.