Displaying 3 results from an estimated 3 matches for "labelat".
2012 Oct 05
1
avoid <<- in specific case
...hints!
Berry
PS: I recently read about barcharts in lattice, but by now I'm already used to my function. (And I learned a lot writing it a couple of years ago).
# Function
horiz.hist <- function(Data, breaks="Sturges", col="transparent", las=1,
ylim=range(HBreaks), labelat=pretty(ylim), labels=labelat, border=par("fg"), ... )
{a <- hist(Data, plot=FALSE, breaks=breaks)
HBreaks <- a$breaks
HBreak1 <- a$breaks[1]
hpos <<- function(Pos) (Pos-HBreak1)*(length(HBreaks)-1)/ diff(range(HBreaks)) # Assign a function to the global environment...
2011 Mar 04
2
make an own (different) color legend with spplot()
Hi!
Is there a way to manually costumize the color legend in an spplot() -
especially where to draw ticks and labels for the ticks?
The reason I'm asking: Usually spplot() automatically divides the data
into fitting slices and makes a color legend (also automatically).
I want to assign the slices myself and have a fixed scale instead of an
automatic/dynamic scale.
I think what I want
2007 Oct 25
1
Strange behavior with time-series x-axis
I recently called plot(x,y) where x was an array of POSIXct timestamps,
and was pleasantly surprised that it produced a nice plot right out of
the box:
z <- as.POSIXct(c("2006-10-26 08:00:00 EDT","2007-10-25 12:00:00 EDT"))
x <- seq(z[1],z[2],len=100)
y <- 1:100
plot(x,y,type="l")
The X axis had nice labels, one tick mark every other month. (Plotting
on