similar to: Vector Assignments

Displaying 20 results from an estimated 30000 matches similar to: "Vector Assignments"

2003 Nov 18
5
Histogram
Hi, I have what should be a simple question. I would like to generate a histogram of x <- c("a","b","c","b","c","c") where the first bar to be labeled 'c' with height 3, second bar to be labeled 'b' with height 2 and third bar to be labeled 'a' with height 1. This should be an easy task in R but I think I
2003 Nov 17
1
\preformatted and $
Hi, I have been developing a package in R and have been working on documentation. I have a \details function that contains the following: \details{ some text \preformatted{ [my-section] user = apv host = 127.0.0.1 } } When I run R CMD check I get an error while checking the manual. If I remove: \preformatted{ [my-section] user = apv host = 127.0.0.1 } and replace it with [my-section]
2004 Apr 30
3
searching a vector
Hi, I have a integer vector x that contains a unique set of numbers: x <- c(1,2,4,6,8,10,12) Is there a simple test I can use to determine if an integer such as 6 is contained in x ? Thanks in advance for any help, Arend
2003 Nov 20
1
Compile Packages under Windows and CHM
Hi, I have been developing a small package. It install under RedHat Linux 9.0 without a problem. However, I have a small problem under Windows XP. I am using R-1.8.0 on both systems and HTML Help Workshop 4.74.8702.0 on Windows XP. I created the package under Linux. When I try to install the package created under Linux in Windows XP using c:\rtest> rcmd install rtest I get the following
2004 Mar 01
1
RODBC
Hi, I have installed RODBC on FreeBSD 4.9 and I am using the PostgreSQL ODBC Driver that is distributed with unixODBC 2.2.8. I can access ODBC Data Sources from Open Office so I think that everything is properly installed. When I installed RODBC I had to set export LIBS=-L/usr/local/lib so that R could locate my ODBC manager. I do not have any problems opening database connections and qurey
2003 Nov 12
1
RMySQL
HI, I have been having trouble installing RMySQL under Redhat Linux 9.0. I am using R 1.8.0 and MySQL 4.0.13. MySQL is install in /opt/mysql. I try to install RMySQL using configure-args to specify the path of mysql but it does not work. Does any body have any suggestions. Thanks, Arend van der Veen The command that I am using is: # R CMD INSTALL
2008 Feb 05
2
using image to show RGB image data ?
Hello all, I'm now using image() to show image data (in my case dumps of SOM weights) but would like to show RGB colour data, not just single "z" colour values. I've currently been using seq() to skip 4 values, so I can show the R, G or B channels separately as "z". But is there a way I can show all three channels simultaneously as a proper colour image? Thanks, B.
2007 Jun 12
1
Empty results OMEGA with XAPIAN 1.0.1
Hi, I configured XAPIAN 1.0.1 and OMEGA 1.0.1. on my development machine (first removed the old ones). I recreated my databases (both quartz and flint) and tried to run original queries against the databases created by the new versions. I'm getting empty result sets from OMEGA. If I use the delve tool I actually see that the records are created fine. No log files are written as far as I
2003 Nov 10
5
Subsetting a list of vectors
Hi, I'm trying to subset a list which contains variable length vectors. What I want to do is extract (eg.) the 3rd item in each vector (with length >= 3). At the moment I'm using sapply(list.of.vectors, function(x) {x[3]}). The problem with this is that sapply returns a list of the same length of list.of.vectors so I end up with a whole lot of null entries from those vectors
2003 Nov 12
0
RMySQL & couldn't find function ".valueClassTest"
Hi Arend, I had the same problem on RH 9 as you, but the tip on http://stat.bell-labs.com/RS-DBI/download/index.html at the bottom telling: """"""""""""""""""""""""""""""""""""""""" The
2007 Nov 22
4
more outrageous plotting
Dear Contributors: I have the next matrix: "X" "Y" "Z" 1 2 526 2 5 723 3 10 110 4 7 1110 5 9 34 6 8 778 7 1 614 8 4 876 9 6 249 10 3 14 I want to order the matrix from bigest Z (1110) to lower Z (14). Then I want to asign a color scale vector from blue ( bigest Z) to orange
2006 Nov 21
3
Cisco media gateways in general
Greetings, After the 0 respones I had on my previous mail regarding the Cisco 2801, I thought I'd be more general. Is anybody using Cisco media gateways at all? If so, how is it working for you? -- Kind regards, Meilleures salutations, Bas van der Veen GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E890160 "The question of whether a computer can think is no
2008 Jul 07
2
Drawing a colour wheel - bug in hcl?
Hi All, I'm trying trying to draw a colour wheel (a slice of hcl space) in R. Running the code below doesn't give me what I expect - there's some oddly bright colours of the wrong hue around c(0, 0) and I see three coloured circles (a small magenta, a medium sized yellow and a large cyan). Am I doing something wrong or is there a bug in the hcl code? (Also any suggestions for
2010 Sep 03
3
define colors for groups in lattice xyplot
Dear all, Lattice provides automatic coloring for subgroups on each panel by the simple use of a groups statement. For an application I want to change these colors to a predifined set. This works well using a panel function in stead of the default as long as there are only points in the graphs. When I set type="b" things get messed up. Any idea why? I include sample code for
2009 Mar 28
2
text matching and substitution
I am trying to simplify a text variable by matching and replacing it with a string in another vector so for example in colours <- paste(letters,colours(),"stuff",LETTERS) find and replace with ("red","blue","green","gray","yellow","other") - irrespective of case its a large dataset, so i'd like to be able to do this
2011 Dec 12
2
Colours for sunflowerplot
Dear fellow R users, I would like to draw a "sunflowerplot" because I have data (decade by month) that plots multiple times on the same x-y co-ordinates. Further I would like to colour each of the points/sunflower leaves on the plot according to the group they belong to (i.e. which type of event each represents within that decade and month). I thought that this would be relatively
2005 Mar 30
5
2d plotting and colours
Hi! I am new to R just 3 days in it and i apologize if my questions seem very trivial and consumed your valuable time. I am coding in perl and i stumbled upon R regarding plotting good statistical graphs. I tried the kmean clustering for a large matrix ,say > 150 * 150 . I tried the example code given in the tutorial to perform 2d plot # i ranges from 2 to 10 cl <- kmeans(x, i, 20)
2011 Aug 09
1
Transparent color ramp problem
Hello, I can't seem to add transparency to any color ramp I create using colorRampPalette(). Can someone tell me if it is possible to create transparent colour ramps? I am attempting to map shaded relief under elevation data. I know I can use the terrain.colors() with the alpha option, but I would prefer to create my own colour ramp using more vibrant colours. My most recent attempt at
2011 Mar 17
4
Help with plotting a line that is multicoloured based on levels of a factor
Hi All, I'm trying to plot data that is a time series of flows that are associated with a specific level, and I would like each level to represent a colour in a line plot. Here is some data that approximates what I'm using: date=c(1:300) flow=sin(2*pi/53*c(1:300)) levels=c(rep(c("high","med","low"),100)) data=cbind.data.frame(date, flow, levels)
2011 Nov 21
6
Scatter plot - using colour to group points?
Dear All, I am very new to R - trying to teach myself it for some MSc coursework. I am plotting temperature data for two different sites over the same time period which I have downloaded from a university weather station data archive. I am using the following code to create the plot plot ( x = TEMP3[,"TIME"], y = TEMP3[,"TEMP"], type = "p", col =