Displaying 20 results from an estimated 30000 matches similar to: "axis colours"
2013 Jun 25
1
Correct scaling of axis in persp3d plot
Hi,
I want to format my axis in my persp3d plot.
With my data, which I attached I created a persp3d plot with the following code, which I summarized from different code snippets I found:
library(rugarch)library(rgl)library(fGarch)fd <-as.data.frame(modelfit,which ='density')color <-rgb(85,141,85,maxColorValue=255)x <-seq(-0.2,0.2,length=100)y <-c(1:2318)f
2011 Sep 12
6
barplot in hexagram layout
dev.new(width=6, height=1.5,mar=c(0,0,0,0))
par(mfrow=c(1,1),mar=c(.5, .5, 1.5, .5), oma=c(.4, 0,.5, 0))
barplot(c(1,1,1,1,1,1),col=c("blue","purple","red","green","orange","yellow"),
axes = FALSE)
I have a barplot that returns six colors in a line. I would like to get the
same six color blocks in a hexagram layout (if it were a clock,
2000 Sep 02
4
colors for background and plotting area
Dear all,
I am trying to prepare some figures where I'd like the color of the plot region
(i.e., the area bounded by the axes) to be different from the margin area
(i.e., the area of the figure not within the axes region). I can use "bg" but
that changes the background of everything? How can I accomplish what I want?
Thanks,
Ramon
--
Ramón Díaz-Uriarte
Triana 47
28016 Madrid
2011 Aug 25
1
question on silhouette colours
I'm fairly new to the silhouette functionality in the cluster package, so apologize if I'm asking something naive.
If I run the 'agnes(ruspini)' example from the silhouette section of the cluster package vignette, and assign colours to clusters, two clusters have what appear to be incorrect colours in the silhouette plot.
library(cluster)
data(ruspini)
ar<- agnes(ruspini)
2009 Apr 08
1
Colour each letter of a text string in a plot
I am inserting a DNA sequence into a plot, and hope to colourize each
of the four nucleotide of the DNA sequence with a unique colour i.e.,
A ("red"), C ("green"), G ("blue", and T ("yellow"). I use the
following codes, but the DNA sequence only shows as "red"
DNA <- "ACGT"
plot(1, xlim = c(0,1), ylim = c(0,1), axes=F,
2010 Nov 08
1
RMark error: only 0's may be mixed with negative subscripts
Hi all,
I have just started using RMark to analyse capture-recapture data. I am
trying to analyse a simulated data set using the Robust Design (two primary
periods with three secondary sessions in each) to estimate apparent
survival. On specifying the time intervals (that tell R about the primary
and secondary sampling sessions), this is the error I get:
> time.int <- c(0,0,1,0,0)
>
2009 Apr 29
3
selecting ith rows of a matrix
Hi all,
If I have a huge matrix/ dataframe and I want to create a new matrix/
dataframe with every second (or third, or fourth etc.) row of the original
matrix, how can I do it? Any help much appreciated.
Thanks,
Umesh
[[alternative HTML version deleted]]
2010 Sep 26
2
Changing x-axis on boxplot
Dear List,
?
I am creating a boxplot with two subsets, very similar to the example by Roger
Bivand at ?boxplot (reproduced below).? I am trying to change the labels on the
x-axis to have one number to cover both subsets.? I can do this in other plots
by using axis=FALSE followed by a separate axis() command.? I have also tried
variations in the names= argument but can't get it to work.?
2004 Jul 01
2
y-axis of lattice panels not printing to paper
Greetings,
I am printing lattice plots from the R-interface to a printer, and although the y-axes of the left-most panels are visable on the screen, they are not present on the paper when there are multiple panels (ie, >1).
For example:
trellis.device(bg='white')
histogram(~dbh, data=diameter.df)
###print to a printer from the R-interface by clicking the print button on the
2002 Dec 08
1
color of plot axes involving POSIX types
I am attempting to plot frequency of occurrence against (calendar) time. As
the output is to be produced as a Powerpoint picture on a dark background I
wish to make the plot output yellow
> par(col="yellow", col.axis="yellow", col.lab="yellow", col.main="yellow")
> plot(t2, t1, ylim=c(0,40), main="Episynlestes run 2",
2004 Oct 01
3
controlling colour in Trellis histogram
Hello. I am sorry for posting a (seemingly) simple question, but I have
just spent 2 hours trying to find the answer, without success. I want
to make a histogram with conditioning on a factor, using Trellis
graphics. However, I do not want any colours (only black and white)
either in the histograms or in the strip. There must be some simple
argument but I can’t find it. Here is my code so
2006 Jul 29
1
fancier plotting
Hi
thank you for talking the time to help me with this.
I have a sequence of numbers in a file and an equal sequence of various character, say(a b c d) each occurs more than once. I need to plot the numbers so that numbers corresponding to a in the other sequence would have green dots, those corresponding to b a red dot, nothing on c and blue square for d. i.e
2 a show a green dot
4 b show a
2009 Oct 05
1
interpreting glmer results
Hi all,
I am trying to run a glm with mixed effects. My response variable is
number of seedlings emerging; my fixed effects are the tree species
and distance from the tree (in two classes - near and far).; my random
effect is the individual tree itself (here called Plot). The command
I've used is:
mod <- glmer(number ~ Species + distance + offset(area) + (1|Plot),
family = poisson)
2010 Mar 26
1
R Scatter plot partially generated in Fedora
Hi:
I?have installed R?first time in Linux/Fedora. I used the yum command
(yum install R). The installation was successful and went without any
errors. I could also run the following R script without any errors.
But, the generated scatter plot only has three blue dots added through
the first plot(...) statement. It does not show the main title,
x-/y-axes, x-/y-labels, and also the green dots
2009 Mar 21
2
limiting simulated animal movement
Hi,
I am trying to simulate animal movement in a gridded landscape made up of
cells. At each time step (iteration), the animal moves from one cell to
another in a random fashion.
This is how I am simulating movement, where a and b are the x,y co-ordinates
of the animal at the previous time step:
for (i in 1:no.of.steps){
direction <- sample(1:8, 1)
if(direction == 1){
a <- a
b <- b -
2009 Nov 27
1
plotting two surfaces simultaneously in a single panel
Hi,
I have recently begun using the lattice package, and have been using
the wireframe command to visualise matrices which are model outputs. I
have been trying to plot two surfaces (from two matrices)
simultaneously in one panel, to visualise intersections etc., but
neither my attempts or trawling the net are helping me find how to do
this.
Can someone help? Thanks
Cheers,
Umesh Srinivasan
2010 Nov 02
1
Colour filling in panel.bwplot from lattice
Inspired by colouring the dots of box-whisker plots I am trying to also
fill the boxes (rectangles) with different colours. This seems not to
work as I expected.
Looking at the help page of panel.bwplot it says: 'fill - color to fill
the boxplot'. Obviously it is only intended to fill all boxes with only
one colour?
Nevertheless the following example shows, that 'fill' from
2011 Jun 07
2
Line Graphs
Hello,
I want to plot 6 line graphs. I have 10 points 0.1, 0.2, 0.3, 0.4, 0.5, 0.6,
0.7, 0.8, 0.9 and 1.0.
At each point say 0.1, I have 6 variables A, B, C, D, E and F. The variables
all have values between 0 and 1 (and including 0 and 1). I also want to
label the x axis from 0.1 to 1.0 and the y axis from 0.1 to 1.0.
My goal is to plot a line graph representing the mean of the variables at
each
2008 Jun 06
4
color scale mapped to B/W
In an R graphic, I'm using
cond.col <- c("green", "yellow", "red")
to represent a quantitative variable, where green means 'OK', yellow
represents 'warning'
and red represents 'danger'. Using these particular color names, in B/W,
red is darkest
and yellow is lightest. I'd like to find color designations to replace
yellow and
2006 Sep 13
3
wrong colours when printing from Windows
I have a strange issue with Brother MFC-5440CN printer.
When I print from Linux/CUPS, it prints colours fine.
When I print from Windows, using Windows drivers (without Samba), it
also prints fine.
When I print from Windows through Samba/CUPS (drivers added using
cupsaddsmb...), it gives me wrong colours:
expected | result
--------------------
yellow | blue
blue | red
red | green