Re: [R] Different stack barplots - same color legends

2018-11-04 Thread P. Roberto Bakker
:06 schreef P. Roberto Bakker < robertobak...@gmail.com>: > Dear Richard, > > Thank you so much for all your work and time you punt in it. > I will start with your suggestions and let you know how far I come. > Also thanks to the others who helpt me. > > Best Roberto >

Re: [R] Different stack barplots - same color legends

2018-11-03 Thread P. Roberto Bakker
levels=c("Almost","Often","Occasionally","Rarely/Never"))) > BIS$Q2<-as.numeric(factor(BIS$Q2, > levels=c("Rarely/Never","Occasionally","Often","Almost"))) > ... > > Jim > On Thu, Nov 1, 2018 at 8:57 A

Re: [R] Different stack barplots - same color legends

2018-11-03 Thread P. Roberto Bakker
>>> >>>> > 2 de situatie in zeer hoge mate van toepassing is voor u of uw > >>> >>>> > supervisorengroep LIKERT STRING > >>> >>>> > 3 de situatie in zeer hoge mate van toepassing is voor u of uw > >>> >

Re: [R] Different stack barplots - same color legends

2018-11-01 Thread P. Roberto Bakker
ls=..." > >> commands to the forward and reversed response options to create the > >> whole transformation code. With a bit of cut-and-paste work, it didn't > >> take that long. Because the BIS-11 is used quite a bit where I am > >> working. it was worth the trouble.

Re: [R] Different stack barplots - same color legends

2018-11-01 Thread P. Roberto Bakker
and "levels=..." > commands to the forward and reversed response options to create the > whole transformation code. With a bit of cut-and-paste work, it didn't > take that long. Because the BIS-11 is used quite a bit where I am > working. it was worth the trouble. > > Jim &g

Re: [R] Different stack barplots - same color legends

2018-11-01 Thread P. Roberto Bakker
;,"Rarely/Never"))) > BIS$Q2<-as.numeric(factor(BIS$Q2, > levels=c("Rarely/Never","Occasionally","Often","Almost"))) > ... > > Jim > On Thu, Nov 1, 2018 at 8:57 AM P. Roberto Bakker > wrote: > > > > Hi Rich, > > >

Re: [R] Different stack barplots - same color legends

2018-10-31 Thread P. Roberto Bakker
>> > >> >> Please send me the > >> >> dput(teamq) > >> >> > >> >> > >> >> On Wed, Oct 31, 2018 at 03:51 P. Roberto Bakker > >> >> > >> >> wrote: > >> >>> > >> >>&g

Re: [R] Different stack barplots - same color legends

2018-10-31 Thread P. Roberto Bakker
rengroep", Op wo 31 okt. 2018 om 16:24 schreef Richard M. Heiberger : > part is fine. just be sure that the small part causes the problem. > I will need that to investigate what is happening. > > > On Wed, Oct 31, 2018 at 11:15 AM, P. Roberto Bakker > wrote: > > It is

Re: [R] Different stack barplots - same color legends

2018-10-31 Thread P. Roberto Bakker
It is a very long result text. I can send it to you, or is part of it ok?[ Op wo 31 okt. 2018 om 14:27 schreef Richard M. Heiberger : > Please send me the > dput(teamq) > > > On Wed, Oct 31, 2018 at 03:51 P. Roberto Bakker > wrote: > >> Thank you for you information.

Re: [R] Different stack barplots - same color legends

2018-10-31 Thread P. Roberto Bakker
ervisorengroep` = "1", : > x is not a factor or a character vector. > > There are many examples in > ?likert > > Rich > > > On Mon, Oct 22, 2018 at 1:30 PM, P. Roberto Bakker > wrote: > > Dear David, > > > > Thank you for you quite respons

Re: [R] Different stack barplots - same color legends

2018-10-22 Thread P. Roberto Bakker
quot;,"orange", "darkolivegreen","green") > barplot(counts[, 1], horiz=TRUE, col=cols, legend=TRUE) > barplot(counts[, 2], horiz=TRUE, col=cols, legend=TRUE) > barplot(counts[, 3], horiz=TRUE, col=cols, legend=TRUE) > > You will need to adjust the xlim= ar

[R] Different stack barplots - same color legends

2018-10-22 Thread P. Roberto Bakker
Hi, I want to make barplots from different questions (columns) in one data.frame. Each question has the same 5 likert items. Now the problem: in some questions all items are answered; in other less. >From the syntax below I get nice stack barplots - *but the legend colors do not* refer to the

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
Lawrence Livermore National Laboratory > 7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062 > Lab cell 925-724-7509 > > > On 4/24/18, 2:23 AM, "R-help on behalf of P. Roberto Bakker" < > r-help-boun...@r-project.org on behalf of robertobak...@gmail.co

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
ges for how to write a file that can be > processed into a report. Also consider learning about RStudio > notebook documents where you can have the output mixed into the > "script" file. > > On Tue, Apr 24, 2018 at 3:23 AM, P. Roberto Bakker > <robertobak...@gmail.com>

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
t ensure that a reasonable answer can be extracted from a given body > of data. ~ John Tukey > > /////////// > > > > > 2018-04-24 11:23 GMT+02:00 P. Roberto Bakker <robertobak...@gmail.com>: > > Hi everybody, > > >

[R] Copy text from Script syntax into .txt

2018-04-24 Thread P. Roberto Bakker
Hi everybody, How can I get text from RScript (e.g. syntax, reminder) into the result text. Sink() does not do that - I only read the results and therefore I have to 'guess' which syntax was used where - reminders I wrote are lost. Bw and thank you in advance, Roberto [[alternative

[R] Dataframe is character

2017-11-17 Thread P. Roberto Bakker
Hi everybody, Question: why are my dataframe and numeric variables a character? I read an excel file via readxl but my dataframe is a character, and numeric variables, eg "yi", are also a character. My excelfile is in English numeric Sometimes the dataframe was indeed a dataframe, but I do not