[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

[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

[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
ght find [1] helpful. [1] https://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 <r-help@r-project.org> wrote: >Hi all,I had a question last week on asking for a function that will &g

[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

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 <r-help@r-project.org> wrote: Thanks

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 <murdoch.dun...@gmail.com> 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

Re: [R] 3D plot with coordinates

2017-06-21 Thread Alaios via R-help
On Tuesday, June 20, 2017 9:49 PM, Uwe Ligges <lig...@statistik.tu-dortmund.de> 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 c

[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 <jrkrid...@yahoo.ca> wrote: No sign of attachment. On Saturday, January 14, 2017 5:42 AM, Alaios via R-help &

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

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

2016-09-14 Thread Alaios via R-help
d imho my ho 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 &l

[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

[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: [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 <dwinsem...@comcast.net> wrote: > On May 2,

[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

Re: [R] Data structure to hold the following

2016-02-15 Thread Alaios via R-help
to do with the data. Bert On Monday, February 15, 2016, Alaios via R-help <r-help@r-project.org> 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 exac

[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

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 <r.tur...@auckland.ac.nz> wrote: On 03/02/16 11:04, Alaios via R-help wrote: > Dear all,I have GPS coordinates

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

2016-02-03 Thread Alaios via R-help
rtment of Anthropology Texas A 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 tha

[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

Re: [R] improve my ggplot look

2015-11-24 Thread Alaios via R-help
ember 24, 2015 12:43 PM, Alaios via R-help <r-help@r-project.org> 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,

Re: [R] improve my ggplot look

2015-11-24 Thread Alaios via R-help
is no reproducible example with which to work, I can't really help/comment much further. If you come up with one, please post it back to the group so that others can see it. Some of them have more experience with mapping in ggplot2 than I do. Dennis On Thu, Nov 19, 2015 at 8:45 PM, Alaios <ala...

[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",

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

2015-11-05 Thread Alaios via R-help
?RegardsAlex On Wednesday, November 4, 2015 11:20 PM, Rolf Turner <r.tur...@auckland.ac.nz> 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, N

Re: [R] merging-binning data

2015-11-04 Thread Alaios via R-help
should not add perceptibly to execution time. Cheers, Boris On Nov 4, 2015, at 6:40 AM, Alaios via R-help <r-help@r-project.org> 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.

Re: [R] merging-binning data

2015-11-04 Thread Alaios via R-help
:09 PM, Boris Steipe <boris.ste...@utoronto.ca> wrote: I don't understand: - where does the "label" come from? (It's not an element of your data that I see.) - what do you want to do with this "label" i.e. how does it need to be associated with the data?

Re: [R] merging-binning data

2015-11-04 Thread Alaios via R-help
stance, test). Best, Ista On Tue, Nov 3, 2015 at 10:47 AM, Alaios via R-help <r-help@r-project.org> 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

Re: [R] merging-binning data

2015-11-04 Thread Alaios via R-help
r of elements in the group, and in the function body I would clearly and explicitly define the conditions for group membership (and comment it). That is how you make code for a task like this explicit and _maintainable_. Cheers, Boris On Nov 4, 2015, at 9:19 AM, Alaios <ala...@yahoo.com

[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,]

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

2015-10-21 Thread Alaios via R-help
if any other approach fails. Cheers 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 matr

[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

[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 $ FIT

[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

Re: [R] From replicate to accesing sublists

2015-04-01 Thread Alaios via R-help
AM, Alaios via R-help wrote: 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

[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) simpleError in if (fitcass1[[2]] == Error) {    print(sprintf(error at fitting gamma distribution

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

2015-02-27 Thread Alaios via R-help
26, 2015 at 9:27 AM, Alaios via R-help r-help@r-project.org 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  3 variables:   ..$ pi  : num [1:2] 0.77 0.23   ..$ mu  : num [1:2

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

2015-02-27 Thread Alaios via R-help
:58 PM, Alaios ala...@yahoo.com wrote: Hi,thanks all for the answer.I am using mclapply to call the lapply many times as needed. My function returns only a value if the fit is succesful.For testing if the fit is sucessfuly my code works like that fitcass1-tryCatch(mix(mixdat=mydataOnVector

[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 

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

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

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

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

[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

Re: [R] combining two distributions

2014-12-08 Thread Alaios via R-help
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 email twice but it does not look sent on my

[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

[R] From Strings to Variable name. When get does not work

2014-03-12 Thread Alaios
Hi all, I would like to turn some long strings like MyString$Myfield$MySubfield into variables but it looks like that the get does not like lists so for example:  test-list(a=2) test $a [1] 2 get(test) $a [1] 2 get(test$a) Fehler in get(test$a) : Objekt 'test$a' nicht gefunden

[R] Read text file

2014-03-11 Thread Alaios
Hi all I am trying to read some text files with the following format: 1377262633.948000    $GPRMC,125708.00,A,5047.66107,N,00603.65528,E,0.203,247.36,230813,,,A*60 1377262633.958000    $GPVTG,247.36,T,,M,0.203,N,0.377,K,A*3B 1377262633.968000   

[R] Ignore errors and proceed to next

2014-02-14 Thread Alaios
Hi all, I have a very large number of vectors that I want first to look fast which distribution might be considered candidate for fitting. I made a simple loop that checks for all vector (the code below is for one vector and being called for each vector separately). If a good fit is found this

Re: [R] Ignore errors and proceed to next

2014-02-14 Thread Alaios
-mail in error please contact the sender. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios Sent: 14. februar 2014 10:14 To: R-help@r-project.org Subject: [R] Ignore errors and proceed to next Hi all, I have a very

[R] Which distribution to select (massive fitting)

2014-02-10 Thread Alaios
Hi all, I have a large number of measurements from which I select a large number of unique vectors. For each vectors I would like to test which distribution might be a candidate for fitting. It is impossible to look on each vector separately but I can inside a for loop test different models and

[R] Density or Boxplot with median and mean

2014-01-22 Thread Alaios
Hi there, I would like to be able to draw a density plot or a box plot where the median and the median and the mean would be visible. If I decide a density plot I need to put two big marks one for the median and one for the mean, which I do not know how I can achieve to put marks in a density

Re: [R] Density or Boxplot with median and mean

2014-01-22 Thread Alaios
Thanks Jim.. once again your rock On Wednesday, January 22, 2014 9:51 AM, Jim Lemon j...@bitwrit.com.au wrote: On 01/22/2014 07:37 PM, Alaios wrote: Hi there, I would like to be able to draw a density plot or a box plot where the median and the median and the mean would be visible

[R] Select 5 identical numbers

2014-01-20 Thread Alaios
Dear all, I would like to select from a vector of 10 elements, 5 of those that are identical. How can I do that in R? I guess one way would be to taking random numbers and see if that appeared again. Is though there a more straightforward approach? Regards Alex [[alternative HTML

Re: [R] Select 5 identical numbers

2014-01-20 Thread Alaios
Hi, I want from a vector containing has like 1000 elements to select X of it randomly but with never selecting the same element again. Each one should be unique element of the vector. Is this more precise now? Regards Alex On Monday, January 20, 2014 7:54 PM, Alaios ala...@yahoo.com wrote

[R] save table to txt file in a printable form

2013-11-19 Thread Alaios
Hi there, I would like to save tabular (in R just matrices) in a txt file but in a way that they would be somehow readable. That means keeping columns aligned and rows so one can read easily for example the 2,3 element. IS there a way to do that in R? capture.output for example does not produce

[R] Grid type of sampling in geodata

2013-11-13 Thread Alaios
Hi all, I have spatial field created with grf and I was wondering if I can sample in lines, something that can resemble sampling outdoors at the streets. Random sampling looks to far of what I want to have. there is in geodata package the sample.geodata but this looks like to be random samples.

Re: [R] Colour Legend text, in a print color2D.matplot

2013-11-12 Thread Alaios
, 2013 3:07 AM, Alaios ala...@yahoo.com wrote: Thanks! It worked. Regards Alex On Monday, November 11, 2013 12:02 AM, Jim Lemon j...@bitwrit.com.au wrote: On 11/11/2013 04:57 AM, Alaios wrote: Hi all, I am plotting very nice looking mattrices with  plotrin... so far so good, I would

[R] Handle Gps coordinates

2013-11-12 Thread Alaios
Dear all, I would like to ask you if there are any gps libraries. I would like to be able to handle them, -like calculate distances in meters between gps locations, -or find which gps location is closer to a list of gps locations. Is there something like that in R? I would like to tthank you

[R] Colour Legend text, in a print color2D.matplot

2013-11-10 Thread Alaios
Hi all, I am plotting very nice looking mattrices with  plotrin... so far so good, I would like though to ask you if it would be possible to add at the bottom of the color.legend (this lovely color bar that maps colors to numbers). Would that be possible to do that? I would like to thank you

[R] Plotrix: Add text below the color- legend.

2013-11-10 Thread Alaios
Hi all, I am plotting very nice and sexy images with plotrix :) so far so good, I would like though to ask you if it would be possible to add at the bottom of the color.legend (this lovely color bar that maps colors to numbers). Would that be possible to do that? I would like to thank you in

Re: [R] Colour Legend text, in a print color2D.matplot

2013-11-10 Thread Alaios
Thanks! It worked. Regards Alex On Monday, November 11, 2013 12:02 AM, Jim Lemon j...@bitwrit.com.au wrote: On 11/11/2013 04:57 AM, Alaios wrote: Hi all, I am plotting very nice looking mattrices with  plotrin... so far so good, I would like though to ask you if it would be possible

[R] convert one digit numbers to two digits one

2013-11-06 Thread Alaios
Hi all, the following returns the hour and the minutes paste(DataSet$TimeStamps[selectedInterval$start,4], DataSet$TimeStamps[selectedInterval$start,5],sep=:) [1] 12:3 the problem is that from these two I want to create a time stamp so 12:03. The problem is that the number 3 is not converted

Re: [R] add a color band

2013-11-04 Thread Alaios
Could you please also help me with those two? Regards Alex On Monday, October 28, 2013 9:00 AM, Alaios ala...@yahoo.com wrote: Hi Jim and thanks for your answer... I might be too tired with my new born or just exhausted. I am sharing for everyone a small data snipset that you can load https

Re: [R] add a color band

2013-11-04 Thread Alaios
are around 400kBytes which is a lot and I am looking for ways to reduce image size. I would like to thank you for you reply Alex On Monday, November 4, 2013 11:59 AM, Jim Lemon j...@bitwrit.com.au wrote: On 11/04/2013 08:09 PM, Alaios wrote: Hi Jim Lemon, thanks for the help, I appreciate

[R] remap values from one vector to the other

2013-10-31 Thread Alaios
Hi everyone, I am plotting some legend and I am using the axis(at=..) to specify the place to plot the marks I want. My plotted data have ncol(x) so the at places have values that span from 1 to ncol(x) there I would like to be able to map values that go from 880e6 to 1020e6. so 880e6

[R] Select fixed number of elements

2013-10-30 Thread Alaios
Hi all, I have in my code some vectors that are not of equal size. I would like to be able for each of these vectors select 6 elements that are (almost) equally spaced. So the first one would be at (or close) to the beginning the last one at (or close) to the end and the other 4 equally spaced

[R] help me align the legend bar

2013-10-30 Thread Alaios
Hi, I have some code that you can simply execute: require(plotrix) test-matrix(data=rnorm(1,-100,5),nrow=100) color2D.matplot(test,axes=F,xlab=,ylab=,main=color.scale,   extremes=c(#FF,#00),show.legend=FALSE)  

[R] TelosB external modules, guide

2013-10-29 Thread Alaios
Hi all, I would like to ask your help regarding connecting external modules to telosb. I have found that tiny os offers many possibilities for that as ADC, GPIOs, SPI, UART, I2C I have never learned anything regarding those. Can someone please let me know if there is any simple guide on these

[R] add a color bar in a plot

2013-10-29 Thread Alaios
Hi all, I am trying to add a color legend to my plot. As an example I am giving you a bit of code that you can run. I am sharing for everyone a small data snipset that you can load https://www.dropbox.com/s/fh8jhwujgunmtrb/DataToPlotAsImage.Rdata load(DataToPlotAsImage.Rdata) require(plotrix)

Re: [R] add a color band

2013-10-28 Thread Alaios
: On 10/27/2013 08:39 AM, Alaios wrote: Hi Jim and thanks for your answer... I might be too tired with my new born or just exhausted. I am attaching for everyone a small data snipset that you can load load(DataToPlotAsImage.Rdata) require(plotrix) browser() test-data # this transforms

[R] Create Time Lists with a for loop

2013-10-28 Thread Alaios
Dear all, in my code I have written the following list TimeFramesShort -list(c(strptime(2011-10-12 10:59:00,%Y-%m-%d %H:%M:%S),strptime(2011-10-13 11:02:00,%Y-%m-%d %H:%M:%S))  # rest items were truncated I was wondering if could somehow  take the first element of the list and

[R] How to avoid this warning message

2013-10-27 Thread Alaios
Dear all, I would like to ask you how I can avoid this warning I am getting when I am writing some results in a text file 5: In write.table(x = cor(t(collectMean_UL), t(collectMean_DL)),  ... :   appending column names to file the code that saves to the file look like:  

[R] Compare two lists, with their sublists that have same structure

2013-10-26 Thread Alaios
Dear all, I would like to ask your help concering two R lists. If I did everything should have the same structure (that means the same number of sublists, and their sublists also the same number of sublists). What would change between the two lists is the contents of each element in the lists.

Re: [R] add a color band

2013-10-26 Thread Alaios
on customize the x axis to write custom string of different size... First I need though to fix the more severe problems as I have described Regards Alex On Friday, October 25, 2013 11:45 PM, Jim Lemon j...@bitwrit.com.au wrote: On 10/25/2013 11:16 PM, Alaios wrote: Hi Jim and thanks for help I

[R] add a color band

2013-10-25 Thread Alaios
Hi all, I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band at the right of the plot describing values with their corresponding color. For now I have only this code test-matrix(data=runif(1),nrow=100) plot(test,axes=FALSE)

Re: [R] add a color band

2013-10-25 Thread Alaios
to thank you in advance for your help Regards Alex On Friday, October 25, 2013 11:50 AM, Jim Lemon j...@bitwrit.com.au wrote: On 10/25/2013 08:38 PM, Alaios wrote: Hi all, I would like to ask your help to add a color band (Ι am not sure regarding the right term, this color band

[R] Plot.raster hides the axis layer

2013-10-24 Thread Alaios
Hi all, I am trying to plot a raster object (I can explain why but the point is that it would be a raster objeçt).. I have selected a small code to show you exactly the problem require(raster) test-matrix(data=runif(1),nrow=100) m-raster(test) plot(m,axes=FALSE)

[R] Where is element 30?

2013-10-22 Thread Alaios
Hi I have a vector like that readCsvFile$V1  [1]  30  31  32  33  34  35  36  37  38  39 310 311 312 313 314 315 316 317 318 [20] 319 320 321  20  21  22  23  24  25  26  27  28  29 210 211 212 213 214 215 [39] 216 217 218 219 220 221 222 223  40  41  42  43  44  45  46  47  48  49 410 [58] 411

[R] plot correlation matrix

2013-10-21 Thread Alaios
Hi all, I am having 4 vectors like Data: num [1:4, 1:32] -82.8 -81.8 -75.5 -107.6 -87.6 ...  and I want to calculate the correlation between those. Is there a graphical way in R to plot the correlations or not? I would like to thank you in advance for your help Regards Alex

[R] Lists with numbers lists and strings

2013-10-18 Thread Alaios
Dear all, I have a list that is created like that Spans-list( c(837e6,842e6),       c(832e6,837e6),       c(930.1e6,935.1e6)       ) I would like to include a second list that will contain the string that would correspond to the numbers at the left side. I would like thus

[R] Averaging Out many rows from a column AND funtion to string

2013-03-27 Thread Alaios
Dear all, 1) I have a very large matrix of  str(keep)  num [1:153899, 1:3415] -98.6 -95.8 -96.4 -95.8 -98 ... that  I would like to reduce its size to something like str(keep)  num [1:1000, 1:3415] -98.6 -95.8 -96.4 -95.8 -98 ...  or anything similar in size as this is a matrix that needs

Re: [R] Averaging Out many rows from a column AND funtion to string

2013-03-27 Thread Alaios
@r- project.org] On Behalf Of Alaios Sent: Wednesday, March 27, 2013 9:13 AM To: R help Subject: [R] Averaging Out many rows from a column AND funtion to string Dear all, 1) I have a very large matrix of str(keep)  num [1:153899, 1:3415] -98.6 -95.8 -96.4 -95.8 -98 ... that  I would like

Re: [R] Averaging Out many rows from a column AND funtion to string

2013-03-27 Thread Alaios
- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Alaios Sent: Wednesday, March 27, 2013 9:13 AM To: R help Subject: [R] Averaging Out many rows from a column AND funtion to string Dear all, 1) I have a very large matrix of str(keep)  num [1

Re: [R] Averaging Out many rows from a column AND funtion to string

2013-03-27 Thread Alaios
  From:PIKAL Petr petr.pi...@precheza.cz Sent: Wednesday, March 27, 2013 11:24 AM Subject: RE: [R] Averaging Out many rows from a column AND funtion to string Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Alaios

[R] Controlling Raster plots

2013-03-27 Thread Alaios
Hi, I have a few raster layers and I would like to customized their x and y axis. I have tried already something like: require('raster') keep-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) xlab-seq(100e6,200e6,length.out=5) test-raster(keep) plot(test,ylab=,xaxt=n,yaxt=n) axis(1,

Re: [R] Averaging Out many rows from a column AND funtion to string

2013-03-27 Thread Alaios
  From:PIKAL Petr petr.pi...@precheza.cz Sent: Wednesday, March 27, 2013 11:24 AM Subject: RE: [R] Averaging Out many rows from a column AND funtion to string Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Alaios

Re: [R] Plot Matrix with Data

2013-03-26 Thread Alaios
Hi, Thanks for the answer. It looks like that the mutate what I was missing so long.. That's my current attempt Data-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) Lengths- 15 library(reshape2) library(ggplot2) require('plyr') tdm - melt(Data) tdm - mutate(tdm, col = cut(value, seq(15, 90, by=5),

[R] Increase font size in plots

2013-03-26 Thread Alaios
Hi I am using violin plots (type of boxplots) and  I am trying to increase the font size in the plots. It looks like that the violin plots do not work as normal plots as the cex parameters are ignored. You can have a loot at the code below require('vioplot') data1-rnorm(100)

Re: [R] Plot Matrix with Data

2013-03-26 Thread Alaios
Hi, it was very kind of you to help me again. Your code works, and the reason I was using the limits as that is that my dataset is slightly different than the one I used for showing the problem here. More specifically this is my dataset Browse[1] str(keep)  num [1:153899, 1:3415] -98.6 -95.8

[R] plot Raster

2013-03-25 Thread Alaios
Dear all, I am trying to plot an image so I am trying this through raster layer. You can copy paste the following require('raster') Data-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) rasterData-raster(Data) lengthOut-5 xAxisFrequencies-seq(800,900,length.out=lengthOut) plot(rasterData,

[R] Plot Matrix with Data

2013-03-25 Thread Alaios
Hi , I would like to use ggplot2 to plot a matrix as an image. You can copy paste the following Data-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) lengthOut-5 Lengths- 15 library(reshape2) library(ggplot2) tdm - melt(Data) ggplot(tdm, aes(x = Var2, y = Var1, fill =

[R] All unique combinations

2013-03-21 Thread Alaios
Dear all, I would like to have all unique combinations in the following matrix TimeIndex- rbind (c(1,Week_of_21_07-29_03),           c(2,Thursday_21_03),           c(3,Friday_22_03),           c(4,Saturday_23_03),           c(5,Sunday_24_03),           c(6,Monday_25_03),          

[R] lm and Formula tutorial

2013-03-05 Thread Alaios
Dear all, I was reading last night the lm and the Formula manual page, and 'I have to admit that I had tough time to understand their syntax. Is there a simpler guide for the dummies like me to start with? I would like to thank you in advance for your help Regards Alex [[alternative

[R] parallel execution in R

2013-02-26 Thread Alaios
Dear all, I have a piece of code that  I want to run in parallel (I am working in system of 16 cores) foreach (i=(seq(-93,-73,length.out=21))) %dopar%  {   threshold-i   print(i) do_analysis1(i,path) do_analysis2(i,path)           

Re: [R] ggplot2 Increase font size

2013-02-26 Thread Alaios
Hi, I am not quite sure what you meanΙ. I give again reproducible code: require(ggplot2) require(reshape) DataToPlot-matrix(data=rnorm(9),nrow=3,dimnames=list(seq(1,3),seq(4,6))) tdm-melt(DataToPlot) p- ggplot(tdm, aes(x = X2, y = X1, fill = factor(value))) +                  

[R] ggplot2 Increase font size

2013-02-25 Thread Alaios
Dear all, I am using the code as below   tdm - melt(matrixToPlot)    p- ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value))) +   labs(x = Mz, y = T, fill = D) +   geom_raster(alpha=1) +   scale_fill_discrete(h.start=1) +  

  1   2   3   4   5   >