Hello Jim

This seems to work but the problem is my dataset is very large so the image
is not coming clear, its all mixed up. my dataset contains 150 rows. in such
case what has to be done?

Thank you so much for the solution

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Thu, Nov 5, 2009 at 6:48 AM, Jim Lemon <jim@bitwrit.com.au> wrote:

> On 11/05/2009 03:40 AM, Sunita22 wrote:
>
>> Hello
>>
>> I need help for the following:
>>
>> my data is
>> class no. best performers
>> 101      10
>> 102      21
>> 103       1
>> 104       3
>> 105       5
>> 106    190
>> ...    ...
>> ...    ...
>> ...    ...
>> ...    ...
>>
>> I want to plot a graph using R, to show that very few classes has maximum
>> best performers. can someone guide me for this? I tried using cumulative
>> frequencies and then plotting a graph but it does not serve the purpose.
>>
>>
> Hi Sunita,
> Maybe this will do what you want:
>
> sundat
>  class_no best_performers
> 1      101              10
> 2      102              21
> 3      103               1
> 4      104               3
> 5      105               5
> 6      106             190
>
> library(plotrix)
> staircase.plot(sundat$best_performers,
>  labels=paste("Class",sundat$class_no),
>  inc.col="blue",direction="s",
>  totals=c(TRUE,rep(FALSE,dim(sundat)[1]-1)),
>  main="Best performers by class")
>
> Jim
>
>

	[[alternative HTML version deleted]]


