Displaying 20 results from an estimated 10000 matches similar to: "about image and rgb"
2007 Mar 11
4
Faking it... import local files into attachment_fu
Hello,
I''m working on an import utility that will match the functionality of
uploading an object of a model that uses attachment_fu for
thumbnailing, etc.
Rather than uploading the file via a form, I want to populate the
params[:image][:uploaded_data] with data from a file already on the
server''s file system.
So far, I''ve been able to copy to an instance of Tempfile
2003 May 16
1
Images Import and Analysis
I'm starting a time study on an area. To determine if an individual has
entered the area, we are having timed photographs taken of the area. What I
want to do is import the image files (either one at a time or
simultaneously), convert it to a density image, take the density at multiple
points in the image and determine if they are over an area average
(indicating someone or something is in
2002 Mar 21
1
help with print and ways to display results
Hi all,
I have some (stupid) problems to display results and
i don't find a solution.
1-
res<-c(1,2,3)
I would like to display
>Results are 1 2 3
The following command cat(paste("Results are ",res,"\n")) give me
>my results are 1 my results are 2 my results are 3
2- res<-cbind(c(1,2),c(2,3))
I would like to display
>Result is the matrix 1 2
2002 Feb 06
3
Help plot
Hello,
I would like plot a vector and want to specify the Xticks which will be
displayed. Is it possible ?
For example, suppose that x is a vector of length 3. I just want the
Xticks (and the corresponding labels)
for 1 2 and 3 to be displayed ( and not 1, 1.5, 2,2.5, ....) .
Thanks
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN
PhD student
2001 Oct 01
3
save plot graph
Dear all,
I have a lot plot graphs and i would like to save them.
One solution is to use the grab function with xv.
But it is tedious....
So is there a R function that can save automatically
the result of a plot in a gif or ps or bmp file
Thanks
Olivier
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN phone: (33) 04 76 61 53 55
Projet IS2
2002 Jul 02
3
mean and array
In general this is what "apply" does. In your example you could use
rowMeans(ar) as well, I think.
Reid Huntsinger
-----Original Message-----
From: Olivier Martin [mailto:olivier.martin at inrialpes.fr]
Sent: Tuesday, July 02, 2002 10:55 AM
To: r-help
Subject: [R] mean and array
Hi all,
I have an array, one say ar, with 3 dimensions.
dim(ar)
>200 3 4
I would like to
2001 Mar 15
3
outer
Dear r-plus users,
i would like to use outer in the following case outer(x,y,FUN="fun")
i suppose that my function fun is of the following form:
fun<-function(x,y)
{
if(y>x) return(x+y)
if(y<=x) return(0)
}
My problem is that the command outer(x,y,FUN="fun") return me a
null matrix instead of an upper triangular matrix.
Is somebody have a solution ?
Thanks for your
2001 Nov 13
2
plot and its options
Hi all,
I have some some difficulties to use plot and its options.
This is what i would like to do.
I want to put three plot in a same window
so i use par(mfrow=c(1,3)) and i obtain three columns for my three
graphics.
But, i would like that the two first take 90% of the window and the last
10%.
Could anyone give me a soultion??
Best regards,
Olivier
--
2012 Jul 10
2
RGB components of plot() colours
A quick question:
Is there anywhere a listing of the RGB components of the
named colours listed by colors()?
For example, where would I find the RGB for "orange1"
or "salmon"?
When I look at an EPS file from R where I have used
these colours, it seems that for:
"salmon":
0.9804 0.5020 0.4471 rgb
"orange1":
1 0.6471 0 rgb
However, this is a tedious way
2002 Feb 26
3
a trick ??
Dear R users,
Suppose i have an A square matrix rxr. I want to obtain a block matrix
B (pxr,pxr) where
the p diagonal blocks are A and the others values are 0.
I would like to do something like : diag(A,ncol=pr, nrow=pr)
How can i do it ??
Thanks in advance,
Olivier.
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN
PhD student phone: (33) 04
2006 Aug 01
2
rgb and col2rgb color conversion/modification/shading
I want to get a lighter shade of a color...I have a lot of colored objects and
want each one printed as a foreground against a slightly lighter background.
I thought I could try something like changing the alpha channel by first
converting it to rgb.
But prior to trying that, I'm stuck with how to get the color after converting
using col2rgb() to be interpreted again as a color, rather than
2009 Nov 30
4
Is there a way to convert rgb/hex value to a (nearest) color name?
Hi all, I'm trying to convert a series of rgb codes into a color name.
What is my easiest option? So far I'm stuck with just converting to
hex using rgb() and I know R knows a number of colours() but a mapping
of the two has failed me.
Any help in this regard will be highly appreciated.
Regards,
George
2002 May 21
1
help with par
Dear R-users,
Using the plot function, I would like that axes are [-1,1] for x and
[-1,1] for y.
But when I use xlim or ylim, it adds automaticaly a small space (i.e.
[-1.25,1.25]).
I suppose that i have to use the fuction par() but i don't find the
good parameter for this problem.
So, how can i define the axes to be exactly [-1,1].
Thanks
Olivier
--
2000 Dec 15
1
Colour to RGB value?
There are a lot of ways to specify colours in R plot functions (number
from the palette, by name, etc.). I'd like to pass a colour from an R
function to an external function, and I'd like it to have the same
flexibility. To avoid having to interpret all possible colour
specifications myself, I need a function to convert a general colour
specification into a standard form (e.g. r,g,b
2001 Oct 02
2
R and Java
Daer all,
Before to expose my problem, this the configuartion of my environment.
I use the version 1.2.1 of R with a limux system (redhat)
I have installed SJava (from omeghat) package successfully.
So, i wanted to try an example (calc.R) that is provided in the library.
This is the message I obtained:
Error in isJavaInitialized("Java virtual machine has not been
initialized. Call
2002 Aug 20
4
plot and bg
Hi all,
I would like to plot some points and define the bg color of my graphics.
But the bg parameter set is defined for the. whole graphic.
In fact, i would like to use something like :
box(bg=gray(0.9)).
So, the background concerns only the plot region and not the main
title, the x title and the y title.
The option col for the function box() concerns the contour and there is
no option
2012 Nov 23
1
invalid colour name 'rgb(1.000,0,0)' error
Hi,
I m working on latex and R and i need to dynamically generate colors.
r<-paste("rgb(1.000,",0,",",0,")",sep="") # i m generating dynamically by
paste command
cars <- c(1, 3, 6, 4, 9)
plot(cars, type="o", col=r) *Error in plot.xy(xy, type,
...) : invalid colour name 'rgb(1.000,0,0)'*
How to fix this
2006 Mar 02
1
extracting RGB values from a colorspace class object
Greetings,
After pouring over the documentation for the 'colorspace' package, I have not
been able to figure out how the plot() method converts colorspace coordinates
to RGB values for display on the screen. I am convert between colorspaces
with the various as() methods... but cannot seem to find a way to extract RGB
(i.e. for displaying on a computer screen) triplets from color space
2009 Apr 05
1
problem with lattice tiff or bitmap: character size and color
Hi all,
I am trying to make tiff files of lattice plots at a resolution greater
than 300 dpi required by a journal (PLoS ONE). I have tried both the tiff
and bitmap functions. tiff keeps panel colors but reduces axes and tick
labels so they are nearly invisible. bitmap maintains correct label size
but only produces greyscale. Regular plots work fine with tiff; the
problem is only with lattice
2002 Mar 29
1
help with lme function
Hi all,
I have some difficulties with the lme function and so this is my problem.
Supoose i have the following model
y_(ijk)=beta_j + e_i + epsilon_(ijk)
where beta_j are fixed effects, e_i is a random effect and
epsilon_(ijk) is the error.
If i want to estimate a such model, i execute
>lme(y~vec.J , random~1 |vec .I )
where y is the vector of my data, vec.J is a factor object