简体   繁体   中英

change 'breaks' argument of hist() function with R

I want to do the following :

  • Open a window (easy with tcl/tk)
  • add " breaks " field, " apply " button, and " accept " button to the window (easy too)
  • loop while i < nbFiles
    • read file i (easy)
    • display an histogram of the data in current file in the window (need help)
    • user can provide breaks argument of hist() function in the field, and once he pushes apply button, new histogram with that configuration will be displayed in the window (need help)
    • wait for accept button to be pushed (Need help) >> histogram will be saved in a file (easy)
    • close the window (easy)

Is it possible ? can I do that with R and tcl tk ? An idea ? thanks

Yes, possible, with tcltk.. This is what you need ?

ciao

tkrplot can do that too

histo <- tkrplot(tt, function()hist(data)
tkgrid(histo)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM