similar to: Plotting a Trivial Matrix

Displaying 20 results from an estimated 700 matches similar to: "Plotting a Trivial Matrix"

2013 Feb 28
3
Gráfica de función
r-help-es@r-project.org Hola!! Estoy trabajando con una función del tipo h(x)''B, donde h(x) es un vector columna de q entradas, de igual manera B es un vector columna de dimensión q. Quiero graficar h(x)''B para alguna h(x), por ejemplo h<-function(x) matrix(c(1,x,x^2,x^3), ncol=1) B es un vector columna fijo B=matrix(c(1,2,1,3),ncol=1) Para graficar la función
2010 Mar 09
3
Fine Tuning Plotrix
Dear All, Please see the code snippet at the end of the email. I am using the color2D.matplot in Plotrix to plot a matrix. It works great, but there are a few things I cannot figure out (1) the value of cex.axis in the code snippet does not seem to affect the final pdf at all (at least on my system, Ubuntu 9.10, plotrix and Cairo installed from cran). How do I specify the size of the axis ticks
2011 Feb 04
1
Adding axes label to image
Dear all, Using the code I got from the link ( http://www.phaget4.org/R/image_matrix.html), I obtained a nice plot that suits me. However, adding axes labels proved difficult for me . I have succeeded in adding a few things to the plot function so as to get what a better plot. Other things work but ylab="days" did not reflect. It will be great if somebody can advice on how to add axes
2009 Jun 24
1
bwimage
Dear Sir/Madam, I am using R-Image in an MSc statistics dissertation and have found, in various EBImage manuals a functions - bwimage, which I would like to use, however I can't find it within my version of R. Could you tell me if the function has changed or what I need to do to be able to use it. Many thanks Alice [[alternative HTML version deleted]]
2009 Aug 04
3
matrix
Hi I have dataset that consists of two columns AB 0.102 AC -0.002 BA -0.102 BC 0.270 CA 0.002 CB -0.270 I wish to create a matrix so that I can eventually plot the data. A B C A 1 0.102 -0.002 B -0.102 1 0.27 C 0.002 -0.27 1 Any help or guidance would be greatly
2008 Dec 12
1
recursive List extraction question
Dear all, I've got a list L <- list(L1 = list (foo = "bar" , SL = NULL ) , L2 = list ( foo = "bar" , SL = list (SSL1 = list (DF = data.frame(val = 21, foo = "bar") , DFOO = list(foo = "foo", bar = "bar") ) ,
2009 Feb 05
1
Multiple-Line Comment (PR#13503)
Hello, sorry for writing here because my problem is not a realt bug but may be a solution for many people working with R: I miss the feature for commenting some lines of code at once without writing a bunch of "#" in front of each line. This is interesting for trying out some code. I found some workarounds like IFELSE(FALSE){} and `!`<- function(x) { if (inherits(x,
2011 Dec 14
2
plot matrix of characters
Hi, I am looking for options to plot the following type of matrices: "A" "B" "C" "D" "A" "A" "C" "C" "A" "A" "A" "C" as a image like this: http://www.phaget4.org/R/image002.jpg
2009 Jun 24
1
I meant bwlabel
Sorry I meant bwlabel on this message Alice --- On Wed, 24/6/09, aliceduggan@btopenworld.com <aliceduggan@btopenworld.com> wrote: From: aliceduggan@btopenworld.com <aliceduggan@btopenworld.com> Subject: bwimage To: r-help@r-project.org Date: Wednesday, 24 June, 2009, 12:34 PM Dear Sir/Madam, I am using R-Image in an MSc statistics dissertation and have found, in various
2019 Jul 09
3
[R] Curl4, Quantmod, tseries and forecast
Hi Ralf, I tried the following > install.packages("RCurl") which went OK, but then same story when I tried to install tseries. > sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 10 (buster) Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.8.0 LAPACK:
2013 Mar 24
3
Parallelizing GBM
Dear All, I am far from being a guru about parallel programming. Most of the time, I rely or randomForest for data mining large datasets. I would like to give a try also to the gradient boosted methods in GBM, but I have a need for parallelization. I normally rely on gbm.fit for speed reasons, and I usually call it this way gbm_model <- gbm.fit(trainRF,prices_train, offset = NULL, misc =
2013 Feb 09
3
Addressing Columns in a Data Frame
Dear All, Probably a one liner, but I am banging my head against the floor. Consider the following DF <- data.frame( x=1:10, y=10:1, z=rep(5,10), a=11:20 ) mn<-names(DF) but then I cannot retrieve a column by doing e.g, DF$mn[2] I tried to play with the quotes and so on, but so far with no avail. Any suggestion is welcome. Cheers Lorenzo
2009 Jul 20
3
Histograms on a log scale
Dear All, I would like to be able to plot histograms/densities on a semi-log or log-log scale. I found several suggestions online http://tolstoy.newcastle.edu.au/R/help/05/09/12044.html https://stat.ethz.ch/pipermail/r-help/2002-June/022295.html http://www.harding.edu/fmccown/R/#histograms Now, consider the code snippet taken from http://www.harding.edu/fmccown/R/#histograms # Get a random
2011 Dec 15
3
From Distance Matrix to 2D coordinates
Dear All, I am struggling with the following problem: I am given a NxN symmetric matrix P ( P[i,i]=0, i=1...N and P[i,j]>0 for i!=j) which stands for the relative distances of N points. I would like use it to get the coordinates of the N points in a 2D plane. Of course, the solution is not unique (given one solution, I can translate or rotate all the points by the same amount and generate
2007 Aug 08
2
Relocating Axis Label/Title --2
Apologies for the previous mail (I sent it off too early by mistake). This is the correct example: rm(list=ls()) D_mean<-seq(-5,5,length=100) y<-exp(-D_mean^2/5) pdf("my.pdf") plot(D_mean,y,type="l",yaxt="n",lty=2,lwd=2,col="black", ylab = list(expression(paste(dN/dlogD[agg]," ["*cm^-3*"]"))), xlab = expression(paste(D[agg],"
2012 Oct 26
2
Stata Database & R
Dear All, I am given some data to analyze. The data is in the form of a Stata database (.dta file). What is the best way to import it into an R dataframe? Is there any particular caveat I should be aware of? Many thanks Lorenzo
2007 Apr 05
17
Reasons to Use R
Dear All, The institute I work for is organizing an internal workshop for High Performance Computing (HPC). I am planning to attend it and talk a bit about fluid dynamics, but there is also quite a lot of interest devoted to data post-processing and management of huge data sets. A lot of people are interested in image processing/pattern recognition and statistic applied to geography/ecology, but I
2013 Jan 28
1
RandomForest and Missing Values
Dear All, I would like to use a randomForest algorithm on a dataset. The set is not particularly large/difficult to handle, but it has some missing values (both factors and numerical values). According to what I found https://stat.ethz.ch/pipermail/r-help/2005-September/078880.html https://stat.ethz.ch/pipermail/r-help/2007-January/123117.html the randomForest package has a problem with missing
2012 Oct 05
2
Test for Random Points on a Sphere
Dear All, I implemented an algorithm for (uniform) random rotations. In order to test it, I can apply it to a unit vector (0,0,1) in Cartesian coordinates. The result is supposed to be a set of random, uniformly distributed, points on a sphere (not the point of the algorithm, but a way to test it). This is what the points look like when I plot them, but other then eyeballing them, can anyone
2013 Mar 25
2
Reassign Multiple Factors to same Factor Value
Dear All, Probably something very easy, but I am looking for the most efficient ways to achieve this. Consider the following snippet y<-c('a','b','c','d','e','f','g') x<-rnorm(length(y)) df<-data.frame(y,x) leading to > df$y [1] a b c d e f g Levels: a b c d e f g Now, I would like to replace levels