You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The additional argument breaks, passed via ... to the function graphics::hist is erroneously treated and if used leading to a wrong plot output. In particular, the argument breaks fails if a single numeric value is provided. However, according to the manual (?hist) the argument breaks allows for
one of:
a vector giving the breakpoints between histogram cells,
a function to compute the vector of breakpoints,
a single number giving the number of cells for the histogram,
a character string naming an algorithm to compute the number of cells (see ‘Details’),
a function to compute the number of cells.
Example
## load data
data(ExampleData.DeValues, envir= environment())
ExampleData.DeValues<-
Second2Gray(ExampleData.DeValues$BT998, dose.rate= c(0.0438,0.0019))
## plot histogram the easiest way
plot_Histogram(ExampleData.DeValues, breaks=5)
Traceback
Please check, amongst others, line 236:
xlim.plot<- range(breaks.plot)
Possible solution
The automatic xlim values should not set using the manually set breaks, but the real one created by hist.
The text was updated successfully, but these errors were encountered:
Summary
The additional argument
breaks
, passed via...
to the functiongraphics::hist
is erroneously treated and if used leading to a wrong plot output. In particular, the argumentbreaks
fails if a singlenumeric
value is provided. However, according to the manual (?hist
) the argumentbreaks
allows forExample
Traceback
Please check, amongst others, line 236:
Possible solution
The automatic
xlim
values should not set using the manually set breaks, but the real one created byhist
.The text was updated successfully, but these errors were encountered: