Displaying 20 results from an estimated 10000 matches similar to: "changing format of y-axis (barplot)"
2008 May 19
1
three-dimensional (volumetric) estimation from x,y,z points
Dear all,
I have a set of x,y,z points obtained from
a lizard species and now I would like to
estimate the three-dimensional use of space
for this species. I know that 2D area I can
estimate using adehabitat packages, but
I don´t know how to estimate the volumetric
space.
Any help are welcome.
Miltinho
Brazil
[[alternative HTML version deleted]]
2008 Sep 20
2
AUC / ROC for presence only.
Dear all,
I have a probability of presence of distribution of a species of interest
(varying from 0 to 1 in continuous form) and I have a set of points
where I know that species really occurs. But I don´t have points of absence.
So, for each true presence I know the estimated presence.
I would like to know how can I compute AUC, taking account these
Available data.
Best wishes,
2008 Feb 27
4
plot y1 and y2 on one graph
Dear all
I have a code like
x<-1:10
y1<-x+runif(10)*2
y2<-seq(0,50,length.out=10)+rnorm(10)*10
par(mfrow=c(1,2))
plot(y1~x)
plot(y2~x)
Now I would like to plot y1 and y2 on the same graph, with its two scales
(y1 on left and y2 on rigth side).
Any help are welcome.
Kind regards
Miltinho
Brazil
[[alternative HTML version deleted]]
2008 Sep 29
3
replicating dataframe rows
Dear all,
I have a data.frame like the sample below, and I would
like to expand my data.frame using "population" variable.
So, for each line of my data.frame I would like that
the new data.frame have many rows as the population collumn.
place<-c("place1", "place2", "place3", "place4", "place5")
population<-c(100,200,300,50,30)
2008 Aug 18
2
changing plot font for Times new roman
Dear all,
I know that it is a know issue, but I would like to change
the type of font on my plot, and I am not sure the
rigth way. I would like to use Times New Roman font,
but according to the "par()" help, some device allow
we choose an family of fonts. I tryed par(family="times")
without success.
Surfing on R archieve I got an suggestion of
use par(font.lab=6), but when I
2008 Oct 07
1
Ecological Niche Modelling on R
Dear all,
I have strong interest on Ecological Niche Model, which in general use a set
of environmental variables (continuous, categorical etc) and Presence (or
Presense/Absence) records for species. I think that "grasp" and "adehabitat"
packages could help me on these tasks.
My input layers are on ASC format, and the record of species is a data-frame
with X, Y, name of
2009 Mar 18
1
time difference (from date function)
Dear all,
I have two variables which contents are date() function answers, like:
d1<-date()
d2<-date()
Now I need to compute the difference between d2 and d1 (in minutes).
Any help are welcome.
Best wishes
miltinho
brazil
[[alternative HTML version deleted]]
2008 Jun 21
2
clicking on plot and recording XY coords
Dear all,
I need to run a interactive procedure where the user
will need click on the screen (over a XY plot)
and I need to record the XY coordinate which the
user clicked. Roughly I wrote a short code below.
You see that I suppose that the user will choose
four coordinates inside the region of intersection
between three segmentes. On each click, I would like to
record the position clicked in a
2008 Apr 22
4
Modeling presence only data in R
Dear All,
I have a set of environental maps and presence-only points for some species.
How can I generate distributions models on R using these presence-only data?
What packages and functions can I use to do so?
Kind regards,
Miltinho
Brazil
[[alternative HTML version deleted]]
2008 Jul 06
4
Numbers as Points in Graphs
I am trying to produce a simple plot where the points in the plot are
actually integers from my data. That is, I am making a length/width plot and
I would like the points, rather dots or triangles, appear as different
numbers corresponding to a column in my data. I have tried using this:
...,pch="column title"
but this merely returns the first letter of the column title, B. Is there
2006 Dec 06
2
require(simecol) error
Hi there,
I´m trying to use "simecol" package but I got the error showed below. I´m runnig R version 2.4.0 (2006-10-03).
Kind regards,
miltinho
Brazil
---
> require(simecol)
Loading required package: simecol
Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source = keep.source) :
in 'simecol' methods specified for export, but
2008 Jul 23
5
Histogram
Hi,
how can I treat data organised in classes and frequencies?
Ex.
class frequency
20-23 9
23-25 7
26-28 5
29-31 5
32-34 3
Thanks
Angelo Scozzarella
2006 Dec 10
4
sample "n" random positions from a matrix
Hi there,
I have a binary matrix (dim 100x100) filled with values 0 and 1. I need select a record "n" positions of that matrix when values are 1. How can I do that?
Thanks for all,
Miltinho
Brazil
---------------------------------
[[alternative HTML version deleted]]
2012 Aug 22
3
Barplot with Secondary axis
Hi all,
I am trying to plot a bar chart and trying to plot a line as a secondary
axis as my scale is different for two y axis.
I am plotting a clustered bar chart by using besides = True option in
barplot function and my y coordinates are not plotted exactly at the center
on each two bars. Please help me.
I am pasting the code as follows.
x =
2008 Sep 10
3
making spearman correlation cor() call fail with log(0) as input
Hi,
How can I make the cor(x, y, method="spearman") call to produce an
error when the input to it (x, y) produces an error? Here is a simple
example:
> a <- c(0, 1, 2)
> b <- c(100, 2, 4)
## error:
> log(a)
[1] -Inf 0.0000000 0.6931472
## error, as expected:
> cor(log(a), log(b), method="pearson")
[1] NaN
## not an error any more (not expected):
>
2006 Sep 17
2
Excluding columns from dataframe and selecting row records
Dear R-friends,
I have to simple questions. First I would like to exclude some columns from a dataframe and after I need select rows that satisfy some conditions.
My data frame looks like
Region Species Bodysize Weigth Age
Africa Sp1 10.2 20 2
Africa Sp2 12.2 12 2
Africa Sp3 15.3 18 3
Africa Sp4 11.5 40 4
Brazil Sp1 10.2 40 3
Brazil Sp2 22.2 32 2
Brazil Sp3 12.3
2010 Jul 07
1
xls.getshlib() error in xlsReadWrite package under W7
Dear all,
I installed xlsReadWrite package under Windows 7, and got error when trying
to run xls.getshlib().
Please, see the errors below:
> require(xlsReadWrite)
Loading required package: xlsReadWrite
xlsReadWrite version (cran shlib)
Copyright (C) 2010 Hans-Peter Suter, Treetron, Switzerland.
!! Your installation contains the cran placeholder shlib (dll/so).
Please get the regular shlib
2008 Jul 19
1
estimating volume from xyz points
Dear all,
I have several sets of x-y-z points and I need to estimate the volume that
encompass all my points.
Recently I got some adivice to show the "convex hull" of my points using
geometry package (see code below).
But now I need to calculate the volume of my set of points.
Any advice are wellcome.
Thanks in advance
Miltinho Astronauta
Brazil
-----
require(geometry)
library(rgl)
2005 Nov 16
2
invert y-axis in barplot
Hi!
This is probably a very trivial question. Is there an easy way to invert the
y-axis (low values on top) when using the function barplot()?
Thanks,
Jörg
[[alternative HTML version deleted]]
2008 Jul 21
1
y-axis number format on plot, barplot etc.
I am trying to change the number format shown on the y-axis from scientific
5e05, to 500,000 etc. Does anyone know how to do this?
Is there something I can add as an argument to barplot, or would it be
through par?
barplot(data$Value, names.arg = as.vector(data$Field), main=strTitle)
[[alternative HTML version deleted]]