@@ -215,7 +215,7 @@ chat$ask("Generate a cell-cell communication plot for the cellphonedb_res data."
215215# > required to skim dataframes. Skim summary of dataframes currently not shown in
216216# > prompt
217217# > Code ran:
218- # > CCCPlot(data = cellphonedb_res, plot_type = "dot" )
218+ # > CCCPlot(cellphonedb_res)
219219```
220220
221221![ ] ( Visualizing_data_with_LLMs_files/figure-html/unnamed-chunk-6-1.png )
@@ -246,7 +246,7 @@ chat$ask("Add a proper title to the plot")
246246# > required to skim dataframes. Skim summary of dataframes currently not shown in
247247# > prompt
248248# > Code ran:
249- # > CCCPlot(cellphonedb_res, plot_type = "heatmap", title = "Cell-Cell Communication Heatmap (LIANA )")
249+ # > CCCPlot(cellphonedb_res, title = "Cell-Cell Communication Plot (cellphonedb_res )")
250250```
251251
252252![ ] ( Visualizing_data_with_LLMs_files/figure-html/unnamed-chunk-8-1.png )
@@ -255,12 +255,12 @@ chat$ask("Add a proper title to the plot")
255255# To fetch the previous conversation
256256# Note that the response from the LLM is simplified in the history
257257chat $ get_history()
258- # > [1] "User: Generate a cell-cell communication plot for the cellphonedb_res data."
259- # > [2] "Assistant: tool - CCCPlot; data - scplotter::cellphonedb_res; code - CCCPlot(data = cellphonedb_res, plot_type = \"dot\")"
260- # > [3] "User: Do a heatmap instead"
261- # > [4] "Assistant: tool - CCCPlot; data - scplotter::cellphonedb_res; code - CCCPlot(cellphonedb_res, plot_type = \"heatmap\")"
262- # > [5] "User: Add a proper title to the plot"
263- # > [6] "Assistant: tool - CCCPlot; data - scplotter::cellphonedb_res; code - CCCPlot(cellphonedb_res, plot_type = \"heatmap\", title = \"Cell-Cell Communication Heatmap (LIANA )\")"
258+ # > [1] "User: Generate a cell-cell communication plot for the cellphonedb_res data."
259+ # > [2] "Assistant: tool - CCCPlot; data - scplotter::cellphonedb_res; code - CCCPlot(cellphonedb_res)"
260+ # > [3] "User: Do a heatmap instead"
261+ # > [4] "Assistant: tool - CCCPlot; data - scplotter::cellphonedb_res; code - CCCPlot(cellphonedb_res, plot_type = \"heatmap\")"
262+ # > [5] "User: Add a proper title to the plot"
263+ # > [6] "Assistant: tool - CCCPlot; data - scplotter::cellphonedb_res; code - CCCPlot(cellphonedb_res, title = \"Cell-Cell Communication Plot (cellphonedb_res )\")"
264264
265265# To clear the history
266266chat $ clear_history()
@@ -1250,11 +1250,11 @@ chat$ask("Generate a cell-cell communication plot for the cellphonedb_res data."
12501250 #> --- Receiving response from LLM provider: ---
12511251
12521252 #> ```r
1253- #> CCCPlot(data = cellphonedb_res, plot_type = "dot ")
1253+ #> CCCPlot(cellphonedb_res, plot_type = "network", legend.position = "none ")
12541254 #> ```
12551255
12561256 #> Code ran:
1257- #> CCCPlot(data = cellphonedb_res, plot_type = "dot ")
1257+ #> CCCPlot(cellphonedb_res, plot_type = "network", legend.position = "none ")
12581258
12591259![ ] ( Visualizing_data_with_LLMs_files/figure-html/unnamed-chunk-10-1.png )
12601260
@@ -2239,10 +2239,10 @@ chat$ask("Generate a cell-cell communication plot for the cellphonedb_res data."
22392239 #> --- Receiving response from LLM provider: ---
22402240
22412241 #> ```r
2242- #> CCCPlot(cellphonedb_res, plot_type = "network")
2242+ #> CCCPlot(cellphonedb_res, plot_type = "network", legend.position = "none" )
22432243 #> ```
22442244
22452245 #> Code ran:
2246- #> CCCPlot(cellphonedb_res, plot_type = "network")
2246+ #> CCCPlot(cellphonedb_res, plot_type = "network", legend.position = "none" )
22472247
22482248![ ] ( Visualizing_data_with_LLMs_files/figure-html/unnamed-chunk-11-1.png )
0 commit comments