I have a variable with the following value:
> pontos
c d b a
0.6666667 1.0000000 0.3333333 0.6666667
hist (points, main="Points", xlab="p", ylab="f")
The result is:
Myx-axisvalueswillalwaysbebetween0and1.Alreadythey-axisvaluescanchangefrom0to100000000.Iwouldliketoreverse!Thatis,thevaluesbetween0and1remainontheYaxisandthefrequencyvalues,whichistheamountthateachvalueappears,stayontheXaxis.
Isawaparameteroftype,horizontal=TRUE.ThisisnotwhatIwant,itissimplytochangethevaluesoftheaxes,valuesthatareintheXaxisappearinYandviceversa.Iknowthatwiththisthehistogramstructurewillchange,butitdoesnotmatter,becausetheY-axiswillbecomeimmenseasthevaluesincrease,andIfindthosevaluesmoreinterestingtostayontheX-axis.
It'salmostabarplot!TheonlythingIdonotwantisthatwhenthereisavaluerepeat,asintheexamplebelow,nottwobarsappear,butonlyone,andontheXaxisindicatingthatthereare2barswithvalueinformedontheYaxis.