IT Labs- MBA I year

Question 1Creating Histogram
The first question is at developing a Histogram chart using the R tool.

Question 2: Creating a graph that uses both line and dot plots
This question is to create a graph that uses to depict the range of values in both dot and line format. This can be achieved by using the R tool that has a special graph type called "b".

Question 3:Creating a scattered graph
The next assignment is to create a scattered graph. For this purpose, I have downloaded the Nifty data from National stock exchange and got the data which contains low, high, opening stock in a particular day trading. The scattered plot contains the low and high data.
Question 4: Obtaining a range of values
Range of values i.e., the maximum and minimum value in data. Here I have mentioned an example of the Nifty data which has a merged data between the highest high and lowest low range data and other sequences of generating numbers.

mergedata<-c br="br" zcol1="zcol1" zcol2="zcol2">> range(mergedata)
[1] 4888.20 6020.75
> z<- br="br" c="c">> z<- br="br" c="c">> z
 [1]  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28
[20]  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47
[39]  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64  65  66
[58]  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85
[77]  86  87  88  89  90  91  92  93  94  95  96  97  98  99 100
> z<- from="4," seq="seq" to="50)<br">> z
 [1]  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
[26] 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
> z<- by="0.5)<br" seq="seq">> z
 [1] -3.0 -2.5 -2.0 -1.5 -1.0 -0.5  0.0  0.5  1.0  1.5  2.0  2.5  3.0
 

1 comment: