Hi! I'm having a trouble changing font size of histogram label. I have tried help(hist), but I couldn't find anything explain how to fix label's font size. Could you help me please? Thank you. _________________________________________________________________ Going green? See the top 12 foods to eat organic. 1N1653A [[alternative HTML version deleted]]
I think that you can edit the source code of histogram for this:
myhist <- getS3method("plot", "histogram")
body(myhist)[9] <-
parse(text = c(capture.output(body(myhist)[9])[-6],
" } else labels, adj = c(0.5, -0.5), ...)"))
r <- hist(islands, plot = F)
myhist(r, labels = T, cex = 0.8)
On Mon, Apr 14, 2008 at 4:35 PM, Sue Lee <hyesuper@hotmail.com> wrote:
>
> Hi!
> I'm having a trouble changing font size of histogram label.
> I have tried help(hist), but I couldn't find anything explain how to
fix
> label's font size.
> Could you help me please?
>
> Thank you.
>
> _________________________________________________________________
> Going green? See the top 12 foods to eat organic.
>
> 1N1653A
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
[[alternative HTML version deleted]]
Here's an example to make the text 18 point. You can set ps=6 to make small text. x=rnorm(100) opar=par(ps=18) # Make text 18 point hist(x) opar Rob Baer ----- Original Message ----- From: "Sue Lee" <hyesuper at hotmail.com> To: <r-help at r-project.org> Sent: Monday, April 14, 2008 2:35 PM Subject: [R] Histogram Label Font Size> > Hi! > I'm having a trouble changing font size of histogram label. > I have tried help(hist), but I couldn't find anything explain how to fix > label's font size. > Could you help me please? > > Thank you. > > _________________________________________________________________ > Going green? See the top 12 foods to eat organic. > > 1N1653A > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >