[R] draw a circle with a gradient fill

2017-10-24 Thread Alaios via R-help
Hi all,I would like to draw a simple circle where the color gradient follows the rule color = 1/(r^2) where r is the distance from the circle. I would also like to add a color bar with values going from -40 to -110 (and associate those with the color gradient that fills the circle). So far I exp

[R] add a color bar

2017-07-10 Thread Alaios via R-help
Hi all,the code you will find at the bottom of the screen creates a 3d diagram of antenna measurements. I am adding also to this Figure a color bar,and I wanted to ask you if I can add a color bar (which package?) that will scale as the windows is maximized. My current color bar is a bit too rou

[R] scalable and dynamic color bar

2017-07-08 Thread Alaios via R-help
Hi,I am using rgl to plot 3d graphics. You can find below some executable code. I would like to add a color bar that scales as the window size scale. The solution I currently have gives a color bar that gets pixelated once you maximize the window. Can you suggest of alternatives? ThanksAlex

Re: [R] Writing my 3D plot function

2017-06-26 Thread Alaios via R-help
wiki.openstack.org/wiki/MailingListEtiquette -- Sent from my phone. Please excuse my brevity. On June 25, 2017 2:42:26 PM EDT, Alaios via R-help wrote: >Hi all,I had a question last week on asking for a function that will >help me draw three different circles on x,y,z axis based on polar &

[R] Writing my 3D plot function

2017-06-25 Thread Alaios via R-help
Hi all,I had a question last week on asking for a function that will help me draw three different circles on x,y,z axis based on polar coordinates (Each X,Y,Z circle are coming from three independent measurements of 1-360 polar coordinates). It turned out that there  is no such function in R and

Re: [R] 3D plot with coordinates

2017-06-22 Thread Alaios via R-help
Thanks. So after searching 4 hours last night it looks like that there is no R package that can do this right now. Any other ideas or suggestions might be helpful.RegardsAlex On Wednesday, June 21, 2017 3:21 PM, Alaios via R-help wrote: Thanks Duncan for the replyI can not suppress

Re: [R] 3D plot with coordinates

2017-06-21 Thread Alaios via R-help
for the reply to allAlex On Wednesday, June 21, 2017 1:07 PM, Duncan Murdoch wrote: On 21/06/2017 5:23 AM, Alaios via R-help wrote: > Thanks a lot for the reply.After  looking at different parts of the code > today I was able to start with simple 2D polar plots as the attach

Re: [R] 3D plot with coordinates

2017-06-21 Thread Alaios via R-help
Tuesday, June 20, 2017 9:49 PM, Uwe Ligges wrote: package rgl. Best, Uwe Ligges On 20.06.2017 21:29, Alaios via R-help wrote: > HelloI have three x,y,z vectors (lets say each is set as  rnorm(360)). So > each one is having 360 elements each one correpsonding to angular coordinates >

[R] 3D plot with coordinates

2017-06-20 Thread Alaios via R-help
HelloI have three x,y,z vectors (lets say each is set as  rnorm(360)). So each one is having 360 elements each one correpsonding to angular coordinates (1 degree, 2 degrees, 3 degrees, 360 degrees) and I want to plot those on the xyz axes that have degress. Is there a function or library to

Re: [R] How these Plots are called? Which package

2017-01-14 Thread Alaios via R-help
can you see it now? I have uploaded it on my dropbox https://www.dropbox.com/s/9eikpabu6xflasa/Figure.jpg?dl=0 On Saturday, January 14, 2017 12:57 PM, John Kane wrote: No sign of attachment. On Saturday, January 14, 2017 5:42 AM, Alaios via R-help wrote: Hello,how I can

[R] How these Plots are called? Which package

2017-01-14 Thread Alaios via R-help
Hello,how I can try something like that in R (in the attachment I am providing a sketch).Which packages would you try to use?I would like to thank you in advance for your helpRegardsAlex __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, s

Re: [R] why data.frame, mutate package and not lists

2016-09-14 Thread Alaios via R-help
is meaningless. Best, 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 Wed, Sep 14, 2016 at 6:01 AM, Alaios via R-help wrote: > Hi all,

[R] why data.frame, mutate package and not lists

2016-09-14 Thread Alaios via R-help
Hi all,I have seen data.frames and operations from the mutate package getting really popular. In the last years I have been using extensively lists, is there any reason to not use lists and use other data types for data manipulation and storage? Any article that describe their differences? I wou

[R] moran's I visualization example

2016-05-05 Thread Alaios via R-help
Hi there,in case one has found a nice and easy reproducible example of a Morans'I example where neighborhoods are depicted and their calculated correlations are visible as well.Point is to make some examples that I can share with students that want to understand fast what is the notion about. Re

Re: [R] greek characters in Figures

2016-05-04 Thread Alaios via R-help
ry > https://cran.cnr.Berkeley.edu/src/contrib zugreifen:  nicht unterstütztes URL > SchemaWarnmeldung:Paket ‘latex2expr’ ist nicht verfügbar (for R version 3.2.4 > Revised)  On Monday, May 2, 2016 9:39 PM, David Winsemius wrote: > On May 2, 2016, at 10:32 AM, Alaios via R-h

[R] greek characters in Figures

2016-05-02 Thread Alaios via R-help
Dear all,I am trying to write in my Figure labels short equations that contain greek characters For example:  C(h) = sigma^2 * rho(h).    I am googling it and there are many packages available but unfortunately they do not look available for my 3.2.4 latex version install.packages("latex2expr"

Re: [R] Data structure to hold the following

2016-02-15 Thread Alaios via R-help
, February 15, 2016, Alaios via R-help wrote: Dear all,I am using R to emulate radio propagation dynamics. I have 90 antennas in a region and each of these 90 antennas hold information about 36 points (these are all exactly the same and there is no need to differentiate them further) Each of

[R] Data structure to hold the following

2016-02-15 Thread Alaios via R-help
Dear all,I am using R to emulate radio propagation dynamics. I have 90 antennas in a region and each of these 90 antennas hold information about 36 points (these are all exactly the same and there is no need to differentiate them further) Each of these antennas now should keep information about t

Re: [R] [FORGED] find numbers that fall in a region or the next available.

2016-02-03 Thread Alaios via R-help
&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios via R-help Sent: Wednesday, February 3, 2016 2:42 AM To: Rolf Turner; R-help Mailing List Subject: Re: [R] [FORGED] find numbers that fall in a regio

Re: [R] [FORGED] find numbers that fall in a region or the next available.

2016-02-03 Thread Alaios via R-help
001) PlotPoints are gps coordinates. That would make it sure that I have no mistakes in my code. Any ideas?Alex On Tuesday, February 2, 2016 11:33 PM, Rolf Turner wrote: On 03/02/16 11:04, Alaios via R-help wrote: > Dear all,I have GPS coordinates (one vector for longitude and o

[R] find numbers that fall in a region or the next available.

2016-02-02 Thread Alaios via R-help
Dear all,I have GPS coordinates (one vector for longitude and one for latitude: GPSLong and GPSLat) of small are that is around 300meters X 300 meters (location falls inside UK).At the same time I have two more vectors (Longitude and Latitude) that include position of food stores again the UK I

[R] getting values from php or javascript

2016-01-22 Thread Alaios via R-help
Dear all,I would like to execute some php or javascripts I found on the web. see at middle of this page towards bottom http://www.howtocreate.co.uk/php/gridref.php#samples Is there any way I can call the php function for example directly from R? I would like to thank you in advance for your reply

Re: [R] improve my ggplot look

2015-11-24 Thread Alaios via R-help
ember 24, 2015 12:43 PM, Alaios via R-help wrote: Dear Dennis, it would be better if not plotting the lon and lat. Keeping it blank is better for the aesthetics of my map. I am not sure how I can give a reproducible example herebut I want to    ggmap(mp, darken = 0) + geom_point(aes(Longi

Re: [R] improve my ggplot look

2015-11-24 Thread Alaios via R-help
sons between the > maps). > > I would like to thank you for your support > Regards > Alex > > > > On Thursday, November 19, 2015 7:13 PM, Dennis Murphy > wrote: > > > Let's try this againsorry for hitting Send inadvertently. > > On Thu, Nov

[R] improve my ggplot look

2015-11-19 Thread Alaios via R-help
Dear all,the following line of code print me a map of an area with the points I need. I only new two minor adjustments     ggmap(mp, darken = 0) + geom_point(aes(Longitude, Latitude, colour =Error), data = PlotPoints, size = 6)+ scale_colour_gradient2(low=muted("red"),mid="green", high=muted("bl

Re: [R] [FORGED] Re: merging-binning data

2015-11-05 Thread Alaios via R-help
sAlex On Wednesday, November 4, 2015 11:20 PM, Rolf Turner wrote: I have been vaguely following this thread and have become very confused given the complications that seem to have appeared. The original question was: >>>>> On Tue, Nov 3, 2015 at 10:47 AM, Ala

Re: [R] merging-binning data

2015-11-04 Thread Alaios via R-help
t; > > > > groups[groups == 2] > > > > > > Depending on the nature of your input data, it may be better to keep > > > these groups in a column adjacent to your values, rather than in a > > > separate vector, or even better to just calculate t

Re: [R] merging-binning data

2015-11-04 Thread Alaios via R-help
n your downstream > analysis with the approach given above in a function, rather than storing > them at all. These are simple operations that should not add perceptibly to > execution time. > > Cheers, > Boris > > > > > > > On Nov 4, 2015, at 6:40 AM, Al

Re: [R] merging-binning data

2015-11-04 Thread Alaios via R-help
tion time. Cheers, Boris On Nov 4, 2015, at 6:40 AM, Alaios via R-help wrote: > Thanks for the answer. Split does not give me the indexes though but only in > which group they fall in. I also need the index of the group. Is the first, > the second .. group?Alex > > >

Re: [R] merging-binning data

2015-11-04 Thread Alaios via R-help
On Tue, Nov 3, 2015 at 10:47 AM, Alaios via R-help wrote: > Dear all,I am not exactly sure on what is the proper name of what I am trying > to do. > I have a vector that looks like >  binDistance >            [,1] >  [1,] 238.95162 >  [2,] 143.08590 >  [3,]  88.50923

[R] merging-binning data

2015-11-03 Thread Alaios via R-help
Dear all,I am not exactly sure on what is the proper name of what I am trying to do. I have a vector that looks like  binDistance    [,1]  [1,] 238.95162  [2,] 143.08590  [3,]  88.50923  [4,] 177.67884  [5,] 277.54116  [6,] 342.94689  [7,] 241.60905  [8,] 177.81969  [9,] 211.25559 [10,] 27

Re: [R] threshold and replace values in a matrix

2015-10-21 Thread Alaios via R-help
s Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios > via R-help > Sent: Wednesday, October 21, 2015 3:35 PM > To: R-help Mailing List > Subject: [R] threshold and replace values in a matrix > > Dear all I have a tabl

[R] threshold and replace values in a matrix

2015-10-21 Thread Alaios via R-help
Dear all I have a table as that. test<-matrix(data=rnorm(100),ncol=10) and I want to find the values that are below my thresholdthreshold<- -0.5and replace them with a -1 instead. I can of course write a double nested for loop to check one by one elementif (test[i,j]<= threshold)   test[i,j]<- -

[R] Multinomial Fitting Distrbution

2015-04-21 Thread Alaios via R-help
Dear all,I am trying to fit a heavy tailed distribution and I have tried working with the mix function of the mixdist package.It looks like that this package allows fitting two distributions (or move) of the same family  and not combining different distributions (so mixing a geometric with a nor

Re: [R] From replicate to accesing sublists

2015-04-01 Thread Alaios via R-help
Thanks.The code you gave me at the end works correctly.. I was wondering if there is more efficient way to access each element withouth this classic for loop. RegardsAlex On Wednesday, April 1, 2015 5:54 PM, David Winsemius wrote: On Apr 1, 2015, at 3:34 AM, Alaios via R-help

[R] change language at console

2015-04-01 Thread Alaios via R-help
Hi all,I am a linux R user and my default R environemnt (after writing R in linux console) returns the error messages in German (I am not the system adminitstrator and I can not change system settings). I know that the English package is also installed so I guess I need to set some environmental

[R] From replicate to accesing sublists

2015-04-01 Thread Alaios via R-help
Dear all,I have a R structure that was created with replicate.The data sets looks to be a matrix with each cell being a list. str(error_suburban_0[,1],max.level=1) List of 4 $ vaR :List of 20 ..- attr(*, "class")= chr "variogram" $ Shadowing:List of 2 ..- attr(*, "class")= chr "geodata"

[R] check a list that a sublist exists

2015-03-03 Thread Alaios via R-help
Hi all,I have a list that has the following fields. $`80` [1] "Error in if (fitcass1[[2]] == \"Error\") { : \n  Fehlender Wert, wo TRUE/FALSE nötig ist\n" attr(,"class") [1] "try-error" attr(,"condition") $`81` [1] 0 $`9` [1] 0 $`79` $parameters     pi   mu    sigma 1 0.999679

Re: [R] Save a list of list and search for values

2015-02-27 Thread Alaios via R-help
to solve? Tell me what you want to do, not how you want to do it. On Thu, Feb 26, 2015 at 9:27 AM, Alaios via R-help wrote: > Dear all,in my code I am using the mix() function that returns results in a > list. The result looks like > List of 10 >  $ parameters  :'data.frame

Re: [R] Save a list of list and search for values

2015-02-27 Thread Alaios via R-help
you want to do, not how you want to do it. On Thu, Feb 26, 2015 at 9:27 AM, Alaios via R-help wrote: > Dear all,in my code I am using the mix() function that returns results in a > list. The result looks like > List of 10 >  $ parameters  :'data.frame':  2 obs. of 

[R] Save a list of list and search for values

2015-02-26 Thread Alaios via R-help
Dear all,in my code I am using the mix() function that returns results in a list. The result looks like List of 10  $ parameters  :'data.frame':   2 obs. of  3 variables:   ..$ pi   : num [1:2] 0.77 0.23   ..$ mu   : num [1:2] -7034 162783   ..$ sigma: num [1:2] 20235 95261  $ se  :'data.f

[R] from expand.grid to a list (lapply)

2015-02-25 Thread Alaios via R-help
Hi all,I would like to use an expand.grid functionality that would give me at the end a listso far my code looks like:  sigma_max_On_seq<-seq(0.05,100,length.out=1) mean_max_On_seq<-seq(2,1),length.out=1) expandMeanSigmaOn<-expand.grid(mean_max_On_seq,mean_max_On_seq,sigma_max_On_seq,s

[R] Parallel for that does not keep the results

2015-02-24 Thread Alaios via R-help
Hi all,I am working in a multi core machine and I am trying to make some parallel code to speed up the process. I have seen already the foreach packet but it looks like that it always combine the results on a list. My case though is simpler since I am plotting and saving in external files, insid

[R] save structure to be accesible later

2015-02-05 Thread Alaios via R-help
Dear all,I have a function that returns the following list. At the end I will call my function 1000 times and I want to keep for each of these 1000 "results" (the structure as given below)in an order to be accessible later (Load the 1000 results and access them within a for loop for example) How

[R] combinations between two vectors

2014-12-18 Thread Alaios via R-help
Hi all,I am looking for a function that would give me all the combinations between two vectors.Lets take as example the  test<-seq(1,3,by=5000) Browse[2]> test [1] 1  5001 10001 15001 20001 25001 I want all the combinations between two times the test... I think this is  called permutatio

Re: [R] combining two distributions

2014-12-08 Thread Alaios via R-help
his list again with "commented, minimal, self-contained, reproducible code" describing what you want in a bit more detail (as indicated at the end of emails on this list).       Spencer On 12/8/2014 10:45 AM, Alaios via R-help wrote: > (I am sorry if you have received this

[R] combining two distributions

2014-12-08 Thread Alaios via R-help
Hi all,I am having some heavy tailed data and I am trying to think of the more appropriate package for the fitting.The canonical try should be something like exponential and pareto or exponential + gamma (or gamma + gamma with different shape parameters). I am trying to have one distribution tha

[R] combining two distributions

2014-12-08 Thread Alaios via R-help
(I am sorry if you have received this email twice but it does not look sent on my client) Hi all,I am having some heavy tailed data and I am trying to think of the more appropriate package for the fitting.The canonical try should be something like exponential and pareto or exponential + ga

[R] starting with mixture distribution

2014-11-30 Thread Alaios via R-help
Hi.I was using the last night the fitdistr package to start with some fitting. I have some data sets that even though have a very gaussian distribution it looks like that also it has some very heavy tails, that can not be accurately be modelled by a gaussian distribution.Where should I give a tr