Displaying 20 results from an estimated 20000 matches similar to: "Histogram"
2005 Jun 26
2
visualizing frequencies
Dear everybody,
In our game-theory lesson we have run several classroom-experiments where the
students had to decide for a natural number between one and seven. I have
troubles now to visualize the results: be a the vector of answers.
hist(a) will not assume natural numbers as answers, but rational. It will make
the brakes exactly at the natural numbers, which is difficult to interpret,
as
2005 Apr 06
3
Error in hist.default(A) : `x' must be numeric
Dear everybody!
I have load a list A of numbers and want a histogram to be drawn.
on
hist(Y)
the Machine returns:
Error in hist.default(A) : `x' must be numeric
I found out, that the list is of type data.frame.
Y<-as.numeric(Y)
returns
Error in as.double.default(A) : (list) object cannot be coerced to double
What schould I do?
Than you in advance!
2007 Dec 09
4
Arguments become nonnumeric
Dear Everybody,
Enclosed are the tiny beginning of a program and its output.
As a pity, if I load the image <load("kanal.RData")> the elements of
<de.dd> are non numerical; <de.dd[2]+de.dd[3]> returns <Fehler in
de.dd[2] + de.dd[3] : nicht-numerisches Argument f??r bin??ren Operator>.
How can I keep the numbers numerical?
Thank you in advance.
hopefully,
Mag.
2010 Feb 07
3
Noval numbers
Dear everybody,
How can I transform numbers to a positional system with the base of, e.g., nine, and do further operations with them?
Thank you in advance
Yours, sincerely
Mag. Ferri Leberl
2012 Jun 26
3
plotting two histograms on one plot with hist function
I would like to plot two data sets (frequency (y-axis) of mean values for 0-1(x=axis)) on a single histogram for comparison. The hist() only allow the overlay of two histograms, and although barplot() allows beside=TRUE, it does not show frequency values (like hist) but rather all of the values. Is there any way that I can use the hist() to plot two data sets similar to the barplot(). Any help or
2008 Feb 16
2
Adding elements to existing lists
Dear everybody!
Is there a command to add elements to an existing list, at best
excluding the addition of already included ones?
Thank you in advance.
Yours,
Mag. Ferri Leberl
2008 Jan 14
3
problems with .svg
Dear everybody!
I am making a graph in R and employ pstoedit to expot the .pdf-output
to .svg.
When I open the .svg with firefox I get the .svg-code shown wit the
following header:
"Mit dieser XML-Datei sind anscheinend keine Style-Informationen
verkn?pft. Nachfolgend wird die Baum-Ansicht des Dokuments angezeigt."
Which information should how be included?
Thank you in advance.
Yours,
2004 Sep 29
5
Warning: number of items to replace is not a multiple of replacement length
What does this warning mean precisely?
Is there any reason to care about it?
Can I Avoid it by another way of programming?
Thank you in advance.
2006 Sep 22
2
inequality with NA
Dear everybody!
take a<-c(5,3,NA,6).
if(a[1]!=NA){b<-7}
if(a[3]!=5){b<-7}
if(a[3]!=NA){b<-7}
if(a[3]==NA){b<-7}
will alltogeather return
Fehler in if (a[1] != NA) { : Fehlender Wert, wo TRUE/FALSE n?tig ist
(or simularly). Somehow this is logical. But how else should I get out,
whether a certain vector-component has an existing value?
Thank you in advance!
Yours,
Mag. Ferri
2006 Jul 14
2
Export to LaTeX
Dear Everybody!
I want to export data to LaTeX. As I want to employ the data as freely as
possible I want to avoid the xtable-command and instead generate some List
like
\MyOwnPrettyCommand{Adam}{Auer}{17}
\MyOwnPrettyCommand{Bertram}{Bauer}{14}
\MyOwnPrettyCommand{Christoph}{Huber}{75}
\MyOwnPrettyCommand{Damian}{Dorfer}{69}
\MyOwnPrettyCommand{Emanuel}{Eder}{43}
with \MyOwnPrittyCommand
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl,
I'm using something like:
----------------------- tex.tex ---------------------------
\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyvrb}
\newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}}
\newcommand{\myinput}[1] {\begin{scriptsize}
\VerbatimInput[frame=single,label=#1]{#1}
\end{scriptsize}}
\title{The R logo,
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl,
I'm using something like:
----------------------- tex.tex ---------------------------
\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyvrb}
\newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}}
\newcommand{\myinput}[1] {\begin{scriptsize}
\VerbatimInput[frame=single,label=#1]{#1}
\end{scriptsize}}
\title{The R logo,
2007 Jul 09
1
making groups
Dear everybody!
If I have an array of numbers e.g. the points my students got at an
examination, and a key to group the numbers, e.g. the key which
interval corresponds with which mark (two arrays of the same length or
one 2x(number of marks)), how can I get the array of absolute
frequencies of marks?
I hope I have expressed my problem clearly.
Thank you in advance.
Mag. Ferri Leberl
2007 Dec 16
1
Working with ranges of a list
Dear everybody!
Please find attached a tiny R-program. It returns:
[,1] [,2]
[1,] 53.55 NA
[2,] 53.55 NA
[3,] 53.55 NA
How can I manage the first column to show the second component not only
of the first list in k??ste but of the second component of every list in
k??ste respectively, such as to get the following array returned:
[,1] [,2]
[1,] 53.55 NA
[2,] 53.87 NA
[3,] 53.87
2006 Nov 21
2
Random-numbers not random
Dear everyone!
Since I saved the workspace-image I get the same row of random-numbers
everytime I run R. How can I make the random-numbers random again?
Thank you in advance!
2008 Jan 16
2
Own classes in "histogram"
Hi,
I try to make a histogram from a variable that contains the number of
shoots from about 1000 individuals from a specific plant species (the range is 1-110).
Those numbers are highly skewed to the right.
My question is: how can I make my own classes with the lattice
"histogram"?
I tried it with "breaks=c(0,5,10,15,20,25,110)" but my "25-110"-class is presented
2011 Nov 04
3
barplot as histogram
Hello:
I'm dealing with an issue currently that I'm not sure the best way to
approach. I've got a very large (10G+) dataset that I'm trying to create
a histogram for. I don't seem to be able to use hist directly as I can
not create an R vector of size greater than 2.2G. I considered
condensing the data previous to loading it into R and just plotting
the frequencies as a
2005 Aug 30
2
xtable
I have installed package xtable with
su -c 'R CMD INSTALL xtable'
and got this promising feedback:
* Installing *source* package 'xtable' ...
** R
** data
** help
>>> Building/Updating help pages for package 'xtable'
Formats: text html latex example
* DONE (xtable)
Despite that, R returns:
Error: couldn't find function "print.xtable"
2005 Feb 09
2
Histogram Bar Spacing or Border Width
Is there any way to control the spacing between bars in a histogram, or
change the border width (I'm assuming the hist() function, though
alternatives are welcome)? I'm interested in changing the visual spacing
between columns in a plotted histogram.
The general effect I'm looking for can be accomplished in barplots using
the "width=" parameter, but I have not been able
2010 May 07
2
smooth line overlap with histogram
Hi r-users,
I would like to overlap a smooth line on the histogram. I tried using spline but it does not work.
sq <- seq(0,900,by=50)
sq.50 <- as.character(sq)
datobs <- sum_pos
## first, plot histogram
histo <- hist(datobs,breaks=sq,freq=F)
## extract counts from histogram and calculate the probability in
## each specified interval. Also check the length of the interval is