[R 1.6.1]
OBSERVATION
data( state )
histogram( ~ state.region
, equal.widths = TRUE # is not necessary with factors
, scales = list( x = list( at = 1 : nlevels( state.region )
, labels = as.character( levels( state.region ) )
))
)
The width of the bars touching the panel border
("Northeast" and "West") is not the same as the
width of the bars between these outmost bars.
PROPOSAL
All bars should have the same width.
I.e. the distance between the outmost tickmarks
to the panel border should be half the distance
between two neighbouring tickmarks.
Wolfram Fischer
histogram {lattice}: width of outmost bars
2 messages · wolfram at fischer-zim.ch, Deepayan Sarkar
On Thursday 03 April 2003 05:11 am, Wolfram Fischer wrote:
[R 1.6.1]
OBSERVATION
data( state )
histogram( ~ state.region
, equal.widths = TRUE # is not necessary with factors
, scales = list( x = list( at = 1 : nlevels( state.region )
, labels = as.character( levels( state.region ) )
))
)
The width of the bars touching the panel border
("Northeast" and "West") is not the same as the
width of the bars between these outmost bars.
Could you try with R 1.6.2 ? (The output of the above code doesn't look wrong to me with 1.6.2). Deepayan