Displaying 2 results from an estimated 2 matches for "barscale".
Did you mean:
parscale
2008 Jan 29
2
how do i creat multiple back to back histograms?
Een ingesloten tekst met niet-gespecificeerde tekenset is
van het bericht gescrubt ...
Naam: niet beschikbaar
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080129/23f6cbc7/attachment.asc
2010 May 15
1
barplot: invalid 'xlim' value
...r.free.fr/graphiques/RGraphGallery.php?graph=109
The part of the code used to create this graphic that interest me:
# Draw the histograms
for (i in 1:length(ages)){
par(new = TRUE)
xmin <- -ages[i] + xlim[1]
xmax <- xlim[2] - ages[i]
ser <- freqs[, i+1]
ser <- ser/max(ser) * barscale
barplot(ser, horiz = TRUE, axes = FALSE, xlim = c(xmin, xmax),
ylim = ylim, col = barcol, space = 0)
}
When I try something similar with the code below, I get the error:
"Error in plot.window(xlim, ylim, log = log, ...) : invalid 'xlim' value"
However, I can succe...