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-14 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 3.3.

[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

[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:

[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

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

2016-08-17 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

[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 Tenkanen

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

2016-04-28 Thread Atte Tenkanen
t to do, not how you want to do it. On Wed, Apr 27, 2016 at 11:46 AM, Atte Tenkanen <atte...@utu.fi> wrote: Hi, Do you have ideas, how to find all those different combinations of integers (>0) that produce as a sum, a certain integer. i.e.: if that sum is 3, the possibilities are c(1,1

[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
wice 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
m>> wrote: > > ?strtoi > > > > You'll have to remove the "#" first, e.g. via substring() > > > > -- Bert > > > > > > Bert Gunter > > > > "The trouble with having an open min

[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

[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... B

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-techni

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

2015-08-28 Thread Atte Tenkanen
= Cy, z = Cz, size = Psize, color = black”), then giving individual point size to each point but this does not work. This does’t work either: for(i in 1:length(Cx)) { rgl.points(x=Cx[i], y=Cz[i], z=Cz[i], size=PSize[i], col= Colors[i]) } Atte Tenkanen

[R] Opposite color in R

2015-07-29 Thread Atte Tenkanen
Message- From: R-help [mailto:r-help-bounces at r-project.org https://stat.ethz.ch/mailman/listinfo/r-help] On Behalf Of Atte Tenkanen Sent: Tuesday, 28 July 2015 18:22 To:r-help at r-project.org https://stat.ethz.ch/mailman/listinfo/r-help Subject: [R] Opposite color in R It seems

[R] Opposite color in R

2015-07-28 Thread Atte Tenkanen
-project.org] On Behalf Of Atte Tenkanen Sent: Sunday, 26 July 2015 7:50a To: r-help@r-project.org Subject: [R] Opposite color in R Hi, I have tried to find a way to find opposite or complementary colors in R. I would like to form a color circle with R like this one: http://nobetty.net/dandls/colorwheel

[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 Jul 2015, at 21:49 , Atte Tenkanen

[R] Opposite color in R

2015-07-25 Thread Atte Tenkanen
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/posting-guide.html and provide

[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://users.utu.fi/attenka

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

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 atte...@utu.fi wrote: Sorry. I should

[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] How to test if there is a subvector in a longer vector

2012-09-27 Thread Atte Tenkanen
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 atte...@utu.fi To: r-help@r-project.org r-help@r-project.org Cc: Sent: Thursday, September

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

2010-06-26 Thread Atte Tenkanen
[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] Wilcoxon signed rank test and its requirements The values come from this kind of process: The musical composition is segmented into so

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

2010-06-26 Thread Atte Tenkanen
- 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] Wilcoxon signed rank test and its requirements The values come from this kind of process: The musical composition is segmented into so-called 'pitch-class segments

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 see if they differ from the population

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

2010-06-26 Thread Atte Tenkanen
). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 From: Atte Tenkanen [mailto:atte...@utu.fi] Sent: Friday, June 25, 2010 10:08 PM To: Atte Tenkanen Cc: Greg Snow; David Winsemius; R mailing list Subject: Re: [R] Wilcoxon

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

2010-06-25 Thread Atte Tenkanen
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 data, n=2418, but there are also a lot of ties. My sample n

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 I do not understand why there should be so many

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

2010-06-24 Thread Atte Tenkanen
is different than the hypothetical value. On Wed, Jun 23, 2010 at 10:27 PM, Atte Tenkanen atte...@utu.fi wrote: Hi all, I have a distribution, and take a sample of it. Then I compare that sample with the mean of the population like here in Wilcoxon signed rank test with continuity

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 atte...@utu.fi wrote: Hi all, I have

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: The Wilcoxon signed rank test does not assume that the data

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: Thanks. What I have had to ask

[R] Wilcoxon signed rank test and its requirements

2010-06-23 Thread Atte Tenkanen
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, Finland Department of Musicology +35823335278 http

[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

[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] glm-test?

2010-06-11 Thread Atte Tenkanen
Joris On Fri, Jun 11, 2010 at 1:50 PM, Atte Tenkanen atte...@utu.fi wrote: Dear R-users, I would like to test, whether a sample distribution differs significantly from a population distribution. They are not normally distributed. How should I proceed? Using somehow glm-models? How

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 atte...@utu.fi wrote: I would have tried z-test (n=67) but since

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

2010-04-17 Thread Atte Tenkanen
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: Atte Tenkanen [mailto:atte...@utu.fi] Sent: Friday, April 16, 2010 1:22 PM To: Greg Snow Cc

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

2010-04-16 Thread Atte Tenkanen
) } --- 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.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? Atte Tenkanen

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

2010-04-16 Thread Atte Tenkanen
that '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/ - Original

[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

[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] 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 Tenkanenatte...@utu.fi wrote: Do somebody know if there is a function in R which  computes the greatest common divisor between several (more than two) integers? Is there a function

[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

Re: [R] Saving a big table or matrix

2008-02-01 Thread Atte Tenkanen
(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 Musicology +023335278 - Original Message - From: Gabor

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

2007-12-05 Thread Atte Tenkanen
T4 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 list https