Re: [R] Some Unicode symbols are missing

2017-08-14 Thread Atte Tenkanen
I think, I succeeded in doing it with Hershey fonts: plot(0,0,xlim=c(0,2),ylim=c(0,2)) text(1,1,"\\#H2380",vfont=c("serif", "plain")) This is ok now! Atte T. 14.8.2017, 9.16, Atte Tenkanen kirjoitti: Hi, I would like to draw some Unicode symbols like G- and f-

[R] Some Unicode symbols are missing

2017-08-13 Thread Atte Tenkanen
oesn't work. G-clef is said to be UTF-8: F0 9D 84 9E UTF-16: D834 DD1E Code point: U+1D11E I have loaded package extrafont and tried everything found in internet without success. Font issues stay mysterious to me ... My system is OSX 10.12.6, R

[R] Layer problem in DrawDensity3D (VecStatGraphs3D)

2017-08-04 Thread Atte Tenkanen
somehow effect on that an get intact layers? -- Atte Tenkanen __ R-help@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

[R] Larger rgl-images?

2017-04-28 Thread Atte Tenkanen
your screen and video card. Can we somehow produce larger images virtually, for example, 4k-images (3840x2160)? Atte Tenkanen __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Getting scan() -command to work during the program run

2016-12-20 Thread Atte Tenkanen
<- function() {X <- scan(n =1); X} f() 1: 3 Read 1 item -- 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 Tue, Dec 20, 2016 at 12:3

[R] Getting scan() -command to work during the program run

2016-12-20 Thread Atte Tenkanen
Hi, How to get scan(file="") command to ask my input from the keyboard? If I put the command straight to the console it works > X1 <- scan(n=1) 1: 22 Read 1 item but as a part of a program it just continues without asking my value? > X1 <- scan(n=1) 1: Read 0 items

Re: [R] More tube-like lines3D?

2016-09-13 Thread Atte Tenkanen
Thanks, time is no problem! Atte 13.9.2016, 15.12, Duncan Murdoch kirjoitti: On 13/09/2016 5:58 AM, Atte Tenkanen wrote: Hi, Is it possible to give 3d-like form for rgl lines3d-lines? Although I increase lwd, lines still look like lines, not like tubes. cylinder3d() should do that. It puts

[R] More tube-like lines3D?

2016-09-13 Thread Atte Tenkanen
Hi, Is it possible to give 3d-like form for rgl lines3d-lines? Although I increase lwd, lines still look like lines, not like tubes. -- Atte Tenkanen, FT MuM Turun Martinseurakunnan kanttori p. 040-3417125 __ R-help@r-project.org mailing list -- To

[R] How to set the window size in rgl for full hd resolution

2016-08-16 Thread Atte Tenkanen
Hi, How can open the window for rgl to use it in making full HD -videos, in which the resolution is 1920 x 1080? Atte Tenkanen __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] About the parameters of rotationMatrix

2016-06-21 Thread Atte Tenkanen
Oh, thanks... ;-) Atte 21.6.2016, 17.30, Duncan Murdoch kirjoitti: for(i in 1: 10) { a2=i*0.1; b2=i*0.2; c2=i*0.3 print(c(a2,b2,c2)) UserMatrix = rotationMatrix(pi/4,a2,b2,c2) print(UserMatrix) } __ R-help@r-project.org maili

[R] About the parameters of rotationMatrix

2016-06-21 Thread Atte Tenkanen
Hi, Why does this not work? The values inside the rotationMatrix() doesn't seem to change: library(rgl) for(i in 1: 10) { a2=i*0.1; b2=i*0.2; c2=i*0.3 print(c(a2,b2,c2)) UserMatrix = rotationMatrix(pi/4,a2,b2,c2) print(UserMatrix) } Yours, Atte Ten

Re: [R] Same sum, different sets of integers

2016-04-28 Thread Atte Tenkanen
ossibilities are c(1,1,1,1),c(1,1,2),c(1,2,1),c(2,1,1),c(2,2),c(1,3),c(3,1) etc. Best regards, Atte Tenkanen __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Same sum, different sets of integers

2016-04-27 Thread Atte Tenkanen
etc. Best regards, Atte Tenkanen __ R-help@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, s

Re: [R] Mean of hexadecimal numbers

2016-04-16 Thread Atte Tenkanen
ets twice the weight colorRampPalette(c(x, "#00"), space = "Lab")(4)[2] rgb2hsv(col2rgb(colorRampPalette(c(x, "#00"), space = "Lab")(4)[2])) [,1] h 0.1597633 s 0.8407960 v 0.7882353 Atte T. 16.4.2016, 19.03, Duncan Murdoch kirjoitti: On 1

Re: [R] Mean of hexadecimal numbers

2016-04-16 Thread Atte Tenkanen
> > > You'll have to remove the "#" first, e.g. via substring() > > > > -- Bert > > > > > > Bert Gunter > > > > "The trouble with having an open mind is that people keep coming > along >

[R] Mean of hexadecimal numbers

2016-04-16 Thread Atte Tenkanen
Hi, How would you calculate the "mean colour" of several colours, for example c("#FF7C00","#00BF40","#00")? Yours, Atte Tenkanen __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see http

[R] Question about function DrawDensity3D {VecStatGraphs3D}

2016-04-04 Thread Atte Tenkanen
Hi, Here is the function DrawDensity3D in package VecStatGraphs3D. My question is: if we use more layers than one, could we change the function in a way that in the final plot only the outmost layer is drawn (the inner layers omitted)? Best regards, Atte Tenkanen function (vectors, Div

Re: [R] From KDE-surfaces to 3d-printing format?

2015-11-27 Thread Atte Tenkanen
015, 16.04, Duncan Murdoch kirjoitti: On 27/11/2015 7:24 AM, Atte Tenkanen wrote: Hi, Is it somehow possible to produce 3D-printing data from the kernel density map produced by the "DrawDensity3D"-function of "VecStatGraphs3D"-package? I'm not an expert of KDE-tech

[R] From KDE-surfaces to 3d-printing format?

2015-11-27 Thread Atte Tenkanen
Hi, Is it somehow possible to produce 3D-printing data from the kernel density map produced by the "DrawDensity3D"-function of "VecStatGraphs3D"-package? I'm not an expert of KDE-technics, just can use that function to produce surfaces..

[R] Separate point sizes in rgl.points()?

2015-08-28 Thread Atte Tenkanen
t;shiny") if (DrawAxes == TRUE) { axes3d() } } Is it somehow possible to define the sizes of the points all separately? I tried by adding ”Psize” to function arguments and changing rgl.points(x = Cx, y = Cy, z = Cz, size = Psize, color = "black”), then giving individ

[R] Opposite color in R

2015-07-29 Thread Atte Tenkanen
5,ColorsRYB[i,3]/255) > } > > pie(rep(1, LenCol), col = ColorsRYBhex) > > Regards > > Duncan > > Duncan Mackay > Department of Agronomy and Soil Science > University of New England > Armidale NSW 2351 > Email: home:mackay at northnet.com.au > <http

[R] Opposite color in R

2015-07-28 Thread Atte Tenkanen
stant should give varying colours of perceptually the same "colourness" and brightness. ?hcl pie(rep(1,12),col=hcl((1:12)*30,c=70),border=NA) -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Atte Tenkanen Sent: Sunday, 26 July 2015 7:50a To: r

[R] Opposite color in R

2015-07-26 Thread Atte Tenkanen
Thanks, This helps me going on. The description in "complementary {colortools}" was/is somehow misleading: "Complementary or opposite color scheme is formed by colors that are opposite each other on the color wheel (example: red and green)." Atte T. >/ On 25 Ju

[R] Opposite color in R

2015-07-25 Thread Atte Tenkanen
uot;) and got yellow instead of orange. Do you know any solutions? Atte Tenkanen __ R-help@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/po

Re: [R] How to test whether is.element() returns only TRUE's

2012-12-17 Thread Atte Tenkanen
I found one: sum(is.element(c(1,4,2),c(1,2,3)))==length(c(1,4,2)) Are there others and perhaps more elegant ways? Atte Tenkanen, FT, MuM http://users.utu.fi/attenka/ Lähettäjä: Atte Tenkanen Lähetetty: 17. joulukuuta 2012 22:24 Vastaanottaja: r-help@r

[R] How to test whether is.element() returns only TRUE's

2012-12-17 Thread Atte Tenkanen
Hi, How can I test, whether all the values that is.element() -function returns are TRUE's Eg. > (is.element(c(1,4,2),c(1,2,3))) [1] TRUE FALSE TRUE This doesn't work: > (is.element(c(1,4,2),c(1,2,3)))==TRUE [1] TRUE FALSE TRUE Best, Atte Tenkanen, FT, MuM http://user

Re: [R] How to test if there is a subvector in a longer vector

2012-09-28 Thread Atte Tenkanen
Thank you! ___ Lähettäjä: Berend Hasselman [b...@xs4all.nl] Lähetetty: 28. syyskuuta 2012 10:47 Vastaanottaja: Atte Tenkanen Cc: R help Aihe: Re: [R] How to test if there is a subvector in a longer vector On 28-09-2012, at 07:41, Atte Tenkanen wrote: > Sorry. I should have mentio

Re: [R] How to test if there is a subvector in a longer vector

2012-09-27 Thread Atte Tenkanen
lapsed relative user.self sys.self #1 isTRUE(all(vec2 %in% vec1))1 0.2951 0.2720 # user.child sys.child #1 0 0 A.K. - Original Message - From: Atte Tenkanen To: "r-help@r-project.org" Cc: Sent: Thursday, September 27, 2012 5:0

[R] How to test if there is a subvector in a longer vector

2012-09-27 Thread Atte Tenkanen
Hi, There are certainly several ways to test, whether a longer vector includes a subvector. For instance, c(1,4,6) is included in c(2,1,1,4,6,3). How to test this and which would be the fastest way to do it? Best, Atte Tenkanen, FT, MuM http://users.utu.fi/attenka

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-26 Thread Atte Tenkanen
gt; > I donÕt have a reference (other than a text book that defines > sampling distributions). > > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > From: Atte Tenkanen [mailto:atte...@ut

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-26 Thread Atte Tenkanen
Atte Tenkanen kirjoitti 26.6.2010 kello 5.15: > > Greg Snow kirjoitti 25.6.2010 kello 21.55: > >> Let me see if I understand. You actually have the data for the >> whole population (the entire piece) but you have some pre-defined >> sections that you want to

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-26 Thread Atte Tenkanen
gt; > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Atte Tenkanen >> Sent: Thursday, June 24, 2010 11:04 PM >> To: David Winsemius >> Cc: R mailing list >> Subject: Re: [R] Wilcoxo

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-26 Thread Atte Tenkanen
t; 801.408.8111 > > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Atte Tenkanen >> Sent: Thursday, June 24, 2010 11:04 PM >> To: David Winsemius >> Cc: R mailing list >> Subjec

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-25 Thread Atte Tenkanen
using z- or t-test, just to compare several different samples? Atte > On Jun 24, 2010, at 6:58 PM, Atte Tenkanen wrote: > > > Is there anything for me? > > > > There is a lot of data, n=2418, but there are also a lot of ties. > > My sample n≈250-300 > > >

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-25 Thread Atte Tenkanen
then, I want to pick only some regions from the piece and compare those values of those regions, whether they are higher than the mean of all values. Atte > On Jun 24, 2010, at 6:58 PM, Atte Tenkanen wrote: > > > Is there anything for me? > > > > There is a lot of da

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-24 Thread Atte Tenkanen
should I use? No choices? This distribution comes from a musical piece and the values are 'tonal distances'. http://users.utu.fi/attenka/Hist.png Atte > On 06/24/2010 12:40 PM, David Winsemius wrote: > > > > On Jun 23, 2010, at 9:58 PM, Atte Tenkanen wrote: > > > &g

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-24 Thread Atte Tenkanen
> On Jun 23, 2010, at 9:58 PM, Atte Tenkanen wrote: > > > Thanks. What I have had to ask is that > > > > how do you test that the data is symmetric enough? > > If it is not, is it ok to use some data transformation? > > > > when it is said: > > &g

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-24 Thread Atte Tenkanen
that the data are distributed symmetrically around the median. If the distribution is asymmetrical, the P value will not tell you much about whether the median is different than the hypothetical value." > On Wed, Jun 23, 2010 at 10:27 PM, Atte Tenkanen wrote: > > Hi al

Re: [R] Wilcoxon signed rank test and its requirements

2010-06-24 Thread Atte Tenkanen
ill not tell you much about > whether the median is different than the hypothetical value." > > > On Wed, Jun 23, 2010 at 10:27 PM, Atte Tenkanen wrote: > > > Hi all, > > > > > > I have a distribution, and take a sample of it. Then I compare > that

[R] Wilcoxon signed rank test and its requirements

2010-06-23 Thread Atte Tenkanen
haNoteOnsetDists V = 63855, p-value = 0.0001047 alternative hypothesis: true location is greater than 0.4115136 What assumptions are needed for the population? What can we say according these results? p-value for the "less" is 0.999. Thanks in advance, Atte Atte Tenkanen University of Turku,

[R] prcomp() and the lenght of PC:s

2010-06-16 Thread Atte Tenkanen
Hi, I would like to know whether there is some deeper rationale behind or is it just an established practice that the lenghts of principal components, giving for example by prcomp-function, are normalised to 1? Best regards, Atte Tenkanen University of Turku, Finland Department of Musicology

Re: [R] glm-test?

2010-06-11 Thread Atte Tenkanen
Thanks! Atte > Take a look at this document: > http://cran.r-project.org/doc/contrib/Ricci-distributions-en.pdf > > All information you need is in there. > Cheers > Joris > > On Fri, Jun 11, 2010 at 2:50 PM, Atte Tenkanen wrote: > > I would have tried z-test (n=

Re: [R] glm-test?

2010-06-11 Thread Atte Tenkanen
ind it in R. > > Cheers > Joris > > On Fri, Jun 11, 2010 at 1:50 PM, Atte Tenkanen wrote: > > Dear R-users, > > > > I would like to test, whether a sample distribution differs > significantly from a population distribution. They are not normally > distributed. H

[R] glm-test?

2010-06-11 Thread Atte Tenkanen
. http://users.utu.fi/attenka/D_Pop http://users.utu.fi/attenka/D_Samp Best regards, Atte Tenkanen University of Turku, Finland Department of Musicology +35823335278 http://users.utu.fi/attenka/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Is it ok to apply the z.test this way?

2010-04-17 Thread Atte Tenkanen
nd 30 is just a rule of thumb, in some > cases too conservative, in others too liberal). > > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > > > -Original Message- > > From

Re: [R] Is it ok to apply the z.test this way?

2010-04-16 Thread Atte Tenkanen
'Distribution'. http://www.ag.fimug.fi/~Atte/RandomComp.pdf All the values are averaged over the bars. That's why the curves are so smooth. Is there any way to find such boundaries? Atte Tenkanen University of Turku, Finland Department of Musicology +35823335278 http://users.utu.fi/attenka/

Re: [R] Is it ok to apply the z.test this way?

2010-04-16 Thread Atte Tenkanen
Thanks, OK. My question is if there is any reasonable way to find p=0.05 boundaries for such a random distribution? Unfortunately I'm not statistician and thus I'm not sure, if even this question makes sense... Should we always consider samples of, say, more than 30 individuals? Att

[R] Is it ok to apply the z.test this way?

2010-04-16 Thread Atte Tenkanen
s,i) } --- I have marked the border values given by this script to the histogram of the original random distribution: http://www.ag.fimug.fi/~Atte/62Hist100410.pdf Atte Tenkanen University of Turku, Finland Department of Musicology +35823335278 http://users.utu

[R] Which one is the right test?

2009-08-27 Thread Atte Tenkanen
Hi, I have a population. Then I have picked one relatively small sub-sample of it using a particular criterion. The means of the whole population and that of the sample seems to differ significantly. The distributions are not normal. What is the right test? Atte Tenkanen University of Turku

Re: [R] The greatest common divisor between more than two integers

2009-07-15 Thread Atte Tenkanen
Thanks! I try that. There is in some packege such a function. Atte > On Wed, Jul 15, 2009 at 8:55 AM, Atte Tenkanen wrote: > > > Do somebody know if there is a function in R which  computes the > greatest common divisor between several (more than two) integers? > > Is

[R] The greatest common divisor between more than two integers

2009-07-15 Thread Atte Tenkanen
Hi, Do somebody know if there is a function in R which computes the greatest common divisor between several (more than two) integers? Best, Atte Atte Tenkanen University of Turku, Finland Department of Musicology +35823335278 http://users.utu.fi/attenka

Re: [R] Saving a big table or matrix

2008-02-01 Thread Atte Tenkanen
ct number of dimensions > dim(Tondistmatrix1) NULL So, this didn't work but then I noticed that this is enough > load("/Users/atte/Skriptit/Tondistmatrix1") > dim(Tondistmatrix1) [1] 3938 3938 No problems any more... Atte Tenkanen University of Turku, Finland Department of Mus

[R] Saving a big table or matrix

2008-02-01 Thread Atte Tenkanen
Dear R-users, How do you save a big table or matrix as an independent object and attach it to your Rdata-project when needed? Atte Tenkanen University of Turku, Finland Department of Musicology +023335278 __ R-help@r-project.org mailing list https

[R] Asymmetrically dependent variables to 2D-map?

2007-12-05 Thread Atte Tenkanen
2 T3T4 T1 0.00 0.41 0.24 1.18 T2 0.21 0.00 0.46 0.12 T3 0.80 0.89 0.00 0.20 T4 0.09 1.04 0.17 0.00 Any suggestions? Something like gplot+mds+weighted arrays? Atte Tenkanen University of Turku, Finland __ R-help@r-project.org mailing li