<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ravidunilanka on Medium]]></title>
        <description><![CDATA[Stories by Ravidunilanka on Medium]]></description>
        <link>https://medium.com/@ravidu02nilanka?source=rss-291c57de3e01------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KAfoStNQRrI5Gx9O</url>
            <title>Stories by Ravidunilanka on Medium</title>
            <link>https://medium.com/@ravidu02nilanka?source=rss-291c57de3e01------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:45:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ravidu02nilanka/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Revealing the Potential of Data & Overview of Power BI Packages]]></title>
            <link>https://medium.com/@ravidu02nilanka/revealing-the-potential-of-data-overview-of-power-bi-packages-7bca978ebb22?source=rss-291c57de3e01------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bca978ebb22</guid>
            <dc:creator><![CDATA[Ravidunilanka]]></dc:creator>
            <pubDate>Tue, 23 Jul 2024 04:54:40 GMT</pubDate>
            <atom:updated>2024-07-23T04:54:40.931Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*APobNWxRl3_7L5Z_1kwufA.jpeg" /><figcaption>PowerBI com R — Autor</figcaption></figure><p>These days data-driven world requires good data use to make informed business decisions. Power BI Desktop, Power BI Service, and Power BI Mobile are the three distinct packages of Microsoft Power BI, a well-known business intelligence and data visualization tool. Each product is specifically designed to satisfy the needs of different user types, from independent data analysts to collaborative business teams.</p><p>In a discussion of the Power BI packages here we discuss in three packages and the key features of those packages</p><p><strong>Power BI Desktop</strong></p><p>Power BI Desktop is the primary product that Power BI provides. You can download and install this free desktop application to change data, connect to several data sources, and create visually appealing reports.</p><p>Power BI Desktop is the primary product that Power BI provides. You can download and install this free desktop application to change data, connect to several data sources, and create visually appealing reports.</p><p>Key Features:</p><p>· Data Connectivity: Seamlessly connect to data sources like Excel, SQL Server, and various online services.</p><p>· Data Transformation: Clean and model your data with the robust Power Query Editor.</p><p>· Advanced Visualizations: Create interactive and detailed visual reports with a wide array of charts, graphs, and maps.</p><p>· DAX Functions: Utilize Data Analysis Expressions (DAX) for complex data manipulation and calculations.</p><p>· Comprehensive Reporting: Develop multi-page reports that provide deep insights into your data.</p><p><strong>Power BI Service:</strong></p><p>Power BI Service is the cloud-based component of Power BI, designed for sharing and collaboration. It offers various licensing models, including Free, Pro, and Premium, each catering to different levels of organizational needs.</p><p>Key Features:</p><p>· Collaborative Environment: Share reports and dashboards with colleagues, enhancing collaborative data analysis.</p><p>· Dynamic Dashboards: Build and distribute dashboards that offer a 360-degree view of key business metrics.</p><p>· Automated Data Refresh: Keep your data current with scheduled refreshes.</p><p>· Workspaces and Apps: Organize content into workspaces and create apps for distributing dashboards and reports across your organization.</p><p>· Advanced Analytics: Integrate with Azure Machine Learning and other analytics tools for deeper insights.</p><p><strong>Power BI Mobile:</strong></p><p>Power BI Mobile ensures that your data is always within reach, no matter where you are. Available for iOS, Android, and Windows devices, Power BI Mobile offers on-the-go access to your reports and dashboards.</p><p>Key Features:</p><p>· Mobile Access: View and interact with Power BI reports and dashboards from anywhere.</p><p>· Push Notifications: Receive real-time alerts on important data changes.</p><p>· Mobile-Optimized Reports: Create reports designed for optimal viewing on mobile devices.</p><p>· Natural Language Queries: Use natural language to ask questions and get insights directly on your mobile device.</p><p>· Barcode Scanning: Scan barcodes to access relevant data instantly, enhancing inventory management and product tracking.</p><p><strong>Choosing the Right Licensing Model</strong></p><p>Power BI’s flexible licensing options ensure that organizations of all sizes can find a suitable plan. The Free version is perfect for individual use, allowing the creation and viewing of reports. The Pro version is ideal for sharing and collaboration, offering advanced features at a monthly fee per-user. The Premium version provides enhanced performance, greater data capacity, and advanced features, available on a per-capacity or per-user (Premium Per User — PPU) basis.</p><p><strong>Conclusion</strong></p><p>Microsoft Power BI offers a comprehensive suite of tools designed to meet diverse data analysis and visualization needs. Whether you are an individual data analyst or part of a collaborative business team, Power BI’s Desktop, Service, and Mobile packages provide the flexibility and power required to turn data into actionable insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bca978ebb22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[R for Raisins: Unveiling Patterns and visualizing from the Raisin Dataset]]></title>
            <link>https://medium.com/@ravidu02nilanka/r-for-raisins-unveiling-patterns-and-visualizing-from-the-raisin-dataset-41e5027e52b8?source=rss-291c57de3e01------2</link>
            <guid isPermaLink="false">https://medium.com/p/41e5027e52b8</guid>
            <dc:creator><![CDATA[Ravidunilanka]]></dc:creator>
            <pubDate>Wed, 29 May 2024 22:20:13 GMT</pubDate>
            <atom:updated>2024-05-30T04:49:10.793Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Ul6gG6En5DuF6Tyz_dTRQ.jpeg" /><figcaption>photo on TIMESOFINDIA.COM</figcaption></figure><p>Hello, fellow data enthusiasts! Today, I’m excited to share my journey exploring the Raisin Dataset from the UCI Machine Learning Repository. This dataset, which contains detailed features of two raisin varieties (Kecimen and Besni), provides a fantastic opportunity to dive into data exploration, create interactive visualizations, and make predictions using R. By the end of this article, you’ll learn how to prepare data for analysis, uncover interesting patterns, and make predictions with regression models. Let’s get started!</p><p>To begin, I downloaded the Raisin Dataset from the UCI Machine Learning Repository(<a href="https://archive.ics.uci.edu/dataset/850/raisin">https://archive.ics.uci.edu/dataset/850/raisin</a>). The dataset includes features extracted from images of raisins, such as area, perimeter, major axis length, minor axis length, eccentricity, and class (indicating the raisin type). Here’s how I prepared the data for analysis in R:</p><p>#Import Dataset &amp; Call The Packages.</p><pre>raisin_dataset=read.csv(&quot;Raisin_Dataset.csv&quot;)<br>raisin_dataset</pre><pre>library(ggplot2)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nHl37iq4OOQDMX6p2qSTBQ.png" /></figure><p>After loading the data, I conducted a preliminary exploration to understand its structure and contents. Here are some interesting observations:</p><ul><li>The dataset contains an equal number of samples for both raisin varieties, making it balanced.</li><li>Features such as area and perimeter show significant variance between the two classes, suggesting they could be important for classification.</li></ul><p>#View the structure, Summaries the dataset &amp; Categorize the dataset.</p><pre>str(raisin_dataset)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ry4HG-gAdAPP7Sl0vOMs2A.png" /><figcaption>View the structure</figcaption></figure><pre>summary(raisin_dataset)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uicRqqP7VlofGsjhchwUgA.png" /><figcaption>Summaries the dataset</figcaption></figure><pre>unique(raisin_dataset$Class)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*72wewxslFoNpG0tLZND0mg.png" /><figcaption>Chatagarised the Class</figcaption></figure><p>Before the regression and visualization parts, I checked the missing values and found the nul values and the result was 0.</p><p>#Identify missing values &amp; Finding nul values.</p><pre>is.na(raisin_dataset)</pre><pre>colSums(is.na(raisin_dataset))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdMIu-3dOJOG1vTfGcWRyQ.png" /><figcaption>Finding nul values</figcaption></figure><p>In Regression models, firstly I make Linear regression. After that summarize the regression model and plot the data with the regression line. In the prediction part, I add new inputs to the Major Axis Length and display the predictions.</p><pre>rmodel_raisin =lm(MinorAxisLength ~ MajorAxisLength, data = raisin_dataset)<br>summary(rmodel_raisin)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAjenoLxO_uR531SUWBDbA.png" /><figcaption>Linear regression &amp; summary of the regression model</figcaption></figure><pre>ggplot(raisin_dataset, aes(x = MajorAxisLength, y = MinorAxisLength, color = Class)) +<br>  geom_point() +<br>  geom_smooth(method = &quot;lm&quot;, se = FALSE, color = &quot;black&quot;) +<br>  ggtitle(&quot;Regression Analysis of Major Axis Length vs Minor Axis Length&quot;) +<br>  labs(x = &quot;Major Axis Length&quot;, y = &quot;Minor Axis Length&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*oFmSVEt-mOJqxELOrdxQWQ.png" /><figcaption>Scatter plot</figcaption></figure><pre>new_data &lt;- data.frame(MajorAxisLength = c(20, 25, 30)) <br>predictions &lt;- predict(model, newdata = new_data)<br>predictions</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EkxgGMC6xLt-CbsAhLe-xw.png" /><figcaption>Display the predictions</figcaption></figure><p>In data visualization, I used three types of plots scatters plot, box plot and histogram. Also categorize the dataset by Class. There are two raisin varieties “Kecimen” ,“Besni” and those varieties are color on same color in all the plots. “Kecimen” in “cyan” color and “Besni” color is “coral”.</p><p># Scatter Plot</p><pre> ggplot(raisin_dataset, aes(x = `MajorAxisLength`, y = `MinorAxisLength`, color = Class)) +<br>        geom_point() +<br>        ggtitle(&quot;Scatter Plot of Major Axis Length vs Minor Axis Length&quot;) +<br>        labs(x = &quot;Major Axis Length&quot;, y = &quot;Minor Axis Length&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*52mV09eop1d5uTmWTMNx_w.png" /><figcaption>Scatter Plot of Major Axis Length vs Minor Axis Length</figcaption></figure><pre>ggplot(raisin_dataset,aes(x=Eccentricity ,y=Area,color=Class))+<br>  geom_point()+<br>  ggtitle(&quot;scatter plot of Eccentricity vs Area colored by Class&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*IQ7kDoWqr6dHx1Rz6DkNTw.png" /><figcaption>Scatter plot of Eccentricity vs Area</figcaption></figure><pre>besni = raisin_dataset[raisin_dataset$Class == &quot;Besni&quot;, ]<br>kecimen =raisin_dataset[raisin_dataset$Class == &quot;Kecimen&quot;, ]<br><br>par(mfrow = c(1, 2))<br>plot(besni$Eccentricity, besni$Area,<br>     main = &quot;Eccentricity vs. Area for Besni&quot;,<br>     xlab = &quot;Eccentricity&quot;,<br>     ylab = &quot;Area&quot;,<br>     col = &quot;coral&quot;,<br>     pch = 19)<br><br>plot(kecimen$Eccentricity, kecimen$Area,<br>     main = &quot;Eccentricity vs. Area for Kecimen&quot;,<br>     xlab = &quot;Eccentricity&quot;,<br>     ylab = &quot;Area&quot;,<br>     col = &quot;cyan&quot;,<br>     pch = 19)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*F3TSlPi8Sz8JpyLN-XDuwA.png" /><figcaption>Scatter plot of Eccentricity vs Area For Besin &amp; Kecimen</figcaption></figure><p>#Box Plot</p><pre>ggplot(raisin_dataset, aes(x = Class, y = `MajorAxisLength`, color = Class)) +<br>        geom_boxplot() +<br>        ggtitle(&quot;Box Plot of Major Axis Length by Class&quot;) +<br>        labs(x = &quot;Class&quot;, y = &quot;Major Axis Length&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*mI3b-xN4V0CfvX7-xiRJJw.png" /><figcaption>Box Plot of Major Axis Length by Class</figcaption></figure><pre>ggplot(raisin_dataset,aes(x=Eccentricity ,y=Area,fill=Class))+<br>  geom_boxplot()+<br>  ggtitle(&quot;Box plot of Eccentricity vs Area colored by Class&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*_Dub-uwMOmL3lguKss5GHA.png" /><figcaption>Box plot of Eccentricity vs Area</figcaption></figure><pre>besni = raisin_dataset[raisin_dataset$Class == &quot;Besni&quot;, ]<br>kecimen =raisin_dataset[raisin_dataset$Class == &quot;Kecimen&quot;, ]<br><br>par(mfrow = c(1, 2))<br> boxplot(besni$Eccentricity, besni$Area,<br>     main = &quot;Eccentricity vs. Area for Besni&quot;,<br>     xlab = &quot;Eccentricity&quot;,<br>     ylab = &quot;Area&quot;,<br>     col = &quot;coral&quot;,<br>     pch = 19)<br><br> boxplot(kecimen$Eccentricity, kecimen$Area,<br>     main = &quot;Eccentricity vs. Area for Kecimen&quot;,<br>     xlab = &quot;Eccentricity&quot;,<br>     ylab = &quot;Area&quot;,<br>     col = &quot;cyan&quot;,<br>     pch = 19)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*OLoewKdBJ18mAhv2xTG3_g.png" /><figcaption>Box plot of Eccentricity vs Area For Besin &amp; Kecimen</figcaption></figure><p>#Histograms</p><pre> ggplot(raisin_dataset, aes(x = `MajorAxisLength`, fill = Class)) +<br>        geom_histogram(binwidth = 1, position = &quot;dodge&quot;) +<br>        ggtitle(&quot;Histogram of Major Axis Length&quot;) +<br>        labs(x = &quot;Major Axis Length&quot;, y = &quot;Count&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*zdWi3UhxozTArgmD1zrGvA.png" /><figcaption>Histogram of Major Axis Length</figcaption></figure><pre>ggplot(raisin_dataset, aes(x = Eccentricity, fill = Class)) +<br>  geom_histogram(binwidth = 0.02, alpha = 0.7, position = &#39;identity&#39;) +<br>  labs(title = &quot;Histogram of Eccentricity&quot;,<br>       x = &quot;Eccentricity&quot;,<br>       y = &quot;Area&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*tJLJbTs3raGBl0nTnizCXg.png" /><figcaption>Histogram of Eccentricity</figcaption></figure><pre>par(mfrow=c(1,2))<br><br>besni = raisin_dataset[raisin_dataset$Class == &quot;Besni&quot;, ]<br>kecimen =raisin_dataset[raisin_dataset$Class == &quot;Kecimen&quot;, ]<br><br>hist(besni$Eccentricity, main = &quot;Histogram of Eccentricity For Besin&quot;, xlab = &quot;Eccentricity&quot;, col = &quot;coral&quot;)<br><br>hist(kecimen$Eccentricity, main = &quot;Histogram of Eccentricity For Kecimen &quot;, xlab = &quot;Eccentricity&quot;, col = &quot;cyan&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*9dsUKB4sgkhpY1HikUnPlQ.png" /><figcaption>Histogram of Eccentricity For Besin &amp; Kecimen</figcaption></figure><p>After the visualization, I start to make a dashboard by using R Shiny.R Shiny is an excellent tool for creating interactive web applications. I used it to build an app that allows users to explore the relationship between different features and raisin types.</p><p>#Working with R Shiny</p><pre>library(shiny)<br>library(ggplot2)<br><br># Define UI<br>ui &lt;- fluidPage(<br>  titlePanel(&quot;Raisin Dataset Visualization&quot;),<br>  <br>  sidebarLayout(<br>    sidebarPanel(<br>      helpText(&quot;Select the type of plot to display and the class to filter.&quot;),<br>      <br>      selectInput(&quot;plotType&quot;, &quot;Plot Type:&quot;,<br>                  choices = c(&quot;Scatter Plot&quot;, &quot;Box Plot&quot;, &quot;Histogram&quot;)),<br>      <br>      selectInput(&quot;classType&quot;, &quot;Class Type:&quot;,<br>                  choices = c(&quot;Kecimen&quot;, &quot;Besni&quot;)),<br>      <br>      actionButton(&quot;update&quot;, &quot;Update Plot&quot;)<br>    ),<br>    <br>    mainPanel(<br>      plotOutput(&quot;plot&quot;)<br>    )<br>  )<br>)<br><br># Define server logic<br>server &lt;- function(input, output) {<br>  <br>  # Load the dataset<br>  raisin &lt;- reactiveVal(read.csv(&quot;~/ASSement/Raisin_Dataset/Raisin_Dataset/Raisin_Dataset.csv&quot;))<br>  <br>  filtered_data &lt;- eventReactive(input$update, {<br>    data &lt;- raisin()<br>    if(input$classType != &quot;All&quot;) {<br>      data &lt;- data[data$Class == input$classType,]<br>    }<br>    data<br>  })<br>  <br>  output$plot &lt;- renderPlot({<br>    data &lt;- filtered_data()<br>    <br>    if (input$plotType == &quot;Scatter Plot&quot;) {<br>      ggplot(data,aes(x=Eccentricity ,y=Area,color=Class))+<br>        geom_point()+<br>        ggtitle(&quot;scatter plot of Eccentricity vs Area colored by Class&quot;) <br>        <br>      <br>    } else if (input$plotType == &quot;Box Plot&quot;) {<br>      ggplot(data,aes(x=Eccentricity ,y=Area,fill=Class))+<br>        geom_boxplot()+<br>        ggtitle(&quot;Box plot of Eccentricity vs Area colored by Class&quot;)<br>       <br>      <br>    } else if (input$plotType == &quot;Histogram&quot;) {<br>      ggplot(data, aes(x = Eccentricity, fill = Class)) +<br>        geom_histogram(binwidth = 0.02, alpha = 0.7, position = &#39;identity&#39;) +<br>        labs(title = &quot;Histogram of Eccentricity&quot;,<br>             x = &quot;Eccentricity&quot;,<br>             y = &quot;Area&quot;) <br>        <br>    }<br>  })<br>}<br><br># Run the application <br>shinyApp(ui = ui, server = server)</pre><p>First interface</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nFhQjaEBpol4_4MRdv18qQ.png" /></figure><p>After update the plot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GO9gHh2b7FuaClMXPeVecw.png" /><figcaption>Scatter plot of Kecimen</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVJ-2eCLiFmwmC32mJnw6A.png" /><figcaption>Scatter plot of Besni</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UM2NIhAeiyTiz2mWI_ZNkA.png" /><figcaption>Box plot of Kecimen</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6kBVP07qmUEwBAgV1btAQ.png" /><figcaption>Box plot of Besni</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4GZWFU1J3AMZzLk_pPxcA.png" /><figcaption>Histogram of Kecimen</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ykl7ZZDbFRuvf6VDjYh42A.png" /><figcaption>Histogram of Besni</figcaption></figure><p>The Shiny app enables users to select any feature from the dataset and visualize its distribution across the two raisin types. This interactivity helps in understanding the data more deeply and identifying significant patterns.</p><p><strong>Learning outcome form the Analysis</strong></p><p>By combining interactive visualizations with predictive modeling, I gained a comprehensive understanding of the Raisin Dataset. This approach highlights how different features contribute to the classification and allows for dynamic exploration of the data.</p><p><strong>Summary</strong></p><p>In this article, we explored the Raisin Dataset, created interactive visualizations with R Shiny, and built a regression model to predict major axis length of raisin types. We identified significant patterns and learned how various features influence the classification of raisins.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41e5027e52b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>